Coder Social home page Coder Social logo

chabok-io / chabok-client-android Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 3.0 17.54 MB

Chabok Push Client for Android

Home Page: https://doc.chabokpush.com/android/required.html

chabok realtime-messaging push-notifications android geolocation geo-tracking geo-fencing

chabok-client-android's Introduction

Chabok Push for Android

Download

Blow some breath to your app with Chabok realtime messaging and receive push notifications cross any platform with zero code. Know your users's better, push them content based on their location or track their presence/location withoud headache.

Installation

See Chabok Push Android library installation document.

Usage

See Chabok Push Usage page for a list of all available methods.

Release Note

You can find release note here.

Support

Please visit Issues.

chabok-client-android's People

Contributors

behrad avatar chabokci avatar farbod-s avatar husseinhj avatar mkouchi avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

chabok-client-android's Issues

Fatal exception in shutdownConnection()

From a long time ago until now we have some fatal exceptions in our Crashltics panel. It seems they are related to your Android SDK.

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void f.p.quiesce(e.d)' on a null object reference
       at DYH.NZV.shutdownConnection(NZV.java:310)
       at DYH.OJW.asyncOperationComplete(OJW.java:388)
       at DYH.NZV.shutdownConnection(NZV.java:351)
       at DYH.HUI.run(HUI.java:146)
       at java.lang.Thread.run(Thread.java:784)

This issue occurs on v 3.3.1 and 3.2.0
I'm not sure which older versions have this issue. but we had this issue on older versions too.

app has crashed on android 12 when install chabok and add dependencies

app not even start on bundle when you install react-native-chabok and add dependencies

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
at android.app.PendingIntent.checkFlags(PendingIntent.java:382)
at android.app.PendingIntent.buildServicePendingIntent(PendingIntent.java:752)
at android.app.PendingIntent.getService(PendingIntent.java:714)
at com.adpdigital.push.HWN.MRR(SourceFile:325)
at com.adpdigital.push.HWN.XTU(SourceFile:344)
at com.adpdigital.push.HWN.NZV(SourceFile:3252)
at com.adpdigital.push.PushService.onCreate(SourceFile:66)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4940)
... 9 more
2022-05-18 14:33:28.886 6748-6748/com.alopeyk.courier E/WebEngage: App has crashed

Cannot save device, Reason: Locked

سلام. وقت به خیر.
بعد از اجرای اپلیکیشن، دستگاهی در بخش کاربران پنل چابک ثبت نمیشه (آمار نصب توی داشبورد هم خالیه).
از محیط سندباکس استفاده می‌کنم.
اینترنت دستگاه وصله.
روی شبیه‌ساز و گوشی واقعی، همین حالت پیش میاد و خطای یکسانی توی لاگ نمایش داده میشه که متنش رو کپی می‎‌کنم خدمتتون:

2020-08-09 11:34:43.592 5302-5489/ W/com.adpdigital.push.AdpPushClient: (CHABOK): Don't register in non-foreground mode!
2020-08-09 11:34:43.926 5302-5302/ I/com.adpdigital.push.AdpPushClient: Chabok realtime is disabled. To enable set realtime in Chabok.sandbox.json file to true.
2020-08-09 11:34:44.010 5302-5489/ I/com.adpdigital.push.AdpPushClient: Registering to Chabok, foreground:true
2020-08-09 11:34:44.142 5302-5302/ I/com.adpdigital.push.AdpPushClient: Chabok realtime is disabled. To enable set realtime in Chabok.sandbox.json file to true.
2020-08-09 11:34:44.196 5302-5489/ W/com.adpdigital.push.AdpPushClient: (CHABOK): Chabok push notification has been disabled in configuration.
2020-08-09 11:34:44.223 5302-5302/ I/com.adpdigital.push.AdpPushClient: Chabok realtime is disabled. To enable set realtime in Chabok.sandbox.json file to true.
2020-08-09 11:34:44.611 5302-5512/ W/remoting.RestAdapter: (CHABOK): HTTP request (string) failed: org.apache.http.client.HttpResponseException: Locked
2020-08-09 11:34:44.625 5302-5512/ E/com.adpdigital.push.AdpPushClient: (CHABOK): Cannot save device, Reason: Locked
    org.apache.http.client.HttpResponseException: Locked
        at NZV.XTU.sendResponseMessage(SourceFile:440)
        at NZV.YCE.run(SourceFile:2078)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)

کارهای مربوط به نصب کتابخانه در هر دو فایل بیلد گریدل رو مطمئنم که طبق مستندات انجام دادم و دو بار چک کردم. فایل جیسون سندباکس رو هم توی مسیر گفته شده کپی کردم. اما به مقداردهی اولیه شک دارم. به همین خاطر کدهای مربوطه رو کپی می‌کنم اینجا:

public class G extends MultiDexApplication {

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
    }

    @Override
    public void onCreate() {
        super.onCreate();
        AdpPushClient.setApplicationContext(this);
        AdpPushClient.configureEnvironment(Environment.SANDBOX);
    }
}

فعلاً کاری به ترکر و پوش نداریم و فقط میخوام دستگاهم توی لیست کاربران بیاد.
حسابمون هنوز عملیاتی نشده.
نسخه‌ی چابک 3.3.1
از توجه شما مچکرم.

Initialization failed

Chabok will crash in initialization state.

Seems you are checking google play services version but it's not included in chabok dependencies.

Here is the full error log

2019-10-23 10:33:18.788 26806-26806/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: ir.shahinsoft.notifictionary, PID: 26806
    java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/GoogleApiAvailability;
        at com.adpdigital.push.AdpPushClient.checkPlayServices(SourceFile:1126)
        at com.adpdigital.push.AdpPushClient.<init>(SourceFile:212)
        at com.adpdigital.push.AdpPushClient.init(SourceFile:365)
        at com.adpdigital.push.AdpPushClient.init(SourceFile:349)
        at ir.shahinsoft.notifictionary.NotifictionaryApplication.onCreate(NotifictionaryApplication.kt:11)
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1155)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5945)
        at android.app.ActivityThread.access$1200(ActivityThread.java:200)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1673)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:201)
        at android.app.ActivityThread.main(ActivityThread.java:6806)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.GoogleApiAvailability" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/ir.shahinsoft.notifictionary-cxct3fVpRyJRKNujaZBJ9g==/base.apk"],nativeLibraryDirectories=[/data/app/ir.shahinsoft.notifictionary-cxct3fVpRyJRKNujaZBJ9g==/lib/arm64, /system/lib64, /vendor/lib64]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        at com.adpdigital.push.AdpPushClient.checkPlayServices(SourceFile:1126) 
        at com.adpdigital.push.AdpPushClient.<init>(SourceFile:212) 
        at com.adpdigital.push.AdpPushClient.init(SourceFile:365) 
        at com.adpdigital.push.AdpPushClient.init(SourceFile:349) 
        at ir.shahinsoft.notifictionary.NotifictionaryApplication.onCreate(NotifictionaryApplication.kt:11) 
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1155) 
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5945) 
        at android.app.ActivityThread.access$1200(ActivityThread.java:200) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1673) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loop(Looper.java:201) 
        at android.app.ActivityThread.main(ActivityThread.java:6806) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)

Also I'm using latest version of androidX and not planing to add google play services as dependency.

ارسال پیام آنی و پوش نوتیفیکیشن از اندروید به وب و بالعکس

سلام
توی نمونه کد ها ارسال پیام از وب به وب و از موبایل به موبایل امکان پذیر هست. چطور میشه از موبایل به وب و بالعکس رو هم فعال کرد؟
مثلا از وب به اندروید یک ارایه جیسون شامل پارامترهای دلخواه ارسال بشه و موبایل حتی در صورت بسته بودن برنامه آن را دریافت کند و برعکس.

[documentation] داده های سفارشی کاربر با امضای دوم login کار نمی کند

سلام. وقت بخیر
مشکلی با مستندات داشتم که
برای ثبت داده های سفارشی کاربر، از امضای دوم متد login استفاده کردم. این متد اما، کار نمی کند.
پس از اینکه عمیقتر در مستندات نگاه کردم، با استفاده از متد setUserAttrubutes اطلاعات کاربر را ذخیره کردم.
به نظر می رسد که متد دوم لاگین کار نمی کند. خواستم اطلاع بدم که بررسی کنید، اگر هم مشکل از طرف من هست، لطفا بهم بگید.
متشکرم

Get RuntimeException in updateDeviceToken method

AdpPushClient.java line 4220
com.adpdigital.push.AdpPushClient.updateDeviceToken

Fatal Exception: java.lang.RuntimeException: An error occurred while executing doInBackground()
       at android.os.AsyncTask$3.done(AsyncTask.java:355)
       at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
       at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
       at java.util.concurrent.FutureTask.run(FutureTask.java:271)
       at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
       at java.lang.Thread.run(Thread.java:784)`

Caused by java.lang.NullPointerException: Attempt to invoke interface method 'void com.adpdigital.push.Callback.onFailure(java.lang.Throwable)' on a null object reference
       at com.adpdigital.push.AdpPushClient.updateDeviceToken(AdpPushClient.java:4220)
       at com.adpdigital.push.AdpPushClient.updateDeviceToken(AdpPushClient.java:4195)
       at com.adpdigital.push.AdpPushClient.access$1700(AdpPushClient.java:101)
       at com.adpdigital.push.MRR.doInBackground(MRR.java:1631)
       at com.adpdigital.push.MRR.doInBackground(MRR.java:1553)
       at android.os.AsyncTask$2.call(AsyncTask.java:334)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
       at java.lang.Thread.run(Thread.java:784)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.