chabokpush / chabok-demo-android Goto Github PK
View Code? Open in Web Editor NEWAndroid demo application using Chabok push service
Android demo application using Chabok push service
با سلام میخواستم بپرسم میشه یه کاری کرد که نوتیفیکیشن به چابک خوش آمدید یا نیاد یا ادیت بشه؟
chabok status sometimes only set CONNECTING and not change ,and on android 8.0.0 it has near 14sec delay to receive push
v2.12.1
com.adpdigital.push.AdpPushClient: Cannot save device, Reason: Internal Server Error
org.apache.http.client.HttpResponseException: Internal Server Error
at a.f.sendResponseMessage(SourceFile:440)
at a.e.run(SourceFile:2078)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:784)
Hi There,
I've Did Done Everything In Your Android Documentation For Push Notification. But When Running The Application , I Face This Problem In LogCat :
E/com.adpdigital.push.AdpPushClient: Cannot save device, Reason: UnknownHostException exception: Unable to resolve host "com.parsdigit.helsa.push.adpdigital.com": No address associated with hostname
java.io.IOException: UnknownHostException exception: Unable to resolve host "com.xxx.xxx.push.adpdigital.com": No address associated with hostname
https://jcenter.bintray.com/com/adpdigital/push/chabok-lib/2.12.1/chabok-lib-2.12.1.pom
https://jcenter.bintray.com/com/adpdigital/push/chabok-lib/2.12.1/chabok-lib-2.12.1.jar
https://repo.maven.apache.org/maven2/com/adpdigital/push/chabok-lib/2.12.1/chabok-lib-2.12.1.pom
https://repo.maven.apache.org/maven2/com/adpdigital/push/chabok-lib/2.12.1/chabok-lib-2.12.1.jar
https://jitpack.io/com/adpdigital/push/chabok-lib/2.12.1/chabok-lib-2.12.1.pom
https://jitpack.io/com/adpdigital/push/chabok-lib/2.12.1/chabok-lib-2.12.1.jar
https://maven.google.com/com/adpdigital/push/chabok-lib/2.12.1/chabok-lib-2.12.1.pom
https://maven.google.com/com/adpdigital/push/chabok-lib/2.12.1/chabok-lib-2.12.1.jar
https://maven.fabric.io/public/com/adpdigital/push/chabok-lib/2.12.1/chabok-lib-2.12.1.pom
https://maven.fabric.io/public/com/adpdigital/push/chabok-lib/2.12.1/chabok-lib-2.12.1.jar
https://dl.bintray.com/samanjafaridotir/easyCountDownTimerTextview/com/adpdigital/push/chabok-lib/2.12.1/chabok-lib-2.12.1.pom
https://dl.bintray.com/samanjafaridotir/easyCountDownTimerTextview/com/adpdigital/push/chabok-lib/2.12.1/chabok-lib-2.12.1.jar
sdk version = 27
implementation 'com.adpdigital.push:chabok-lib:2.12.1'
وقتی اپلیکیشن ران نیست دیتا نوتیفیکیشن رو از کجا بخونیم
برای نمایش کامل متن اعلان یا اکسپند شدن اعلان نوتیفیکیشن باید چه کار کرد؟
من طبق مستندات اینها رو به dependencies اضافه کردم:
compile 'me.leolin:ShortcutBadger:1.1.18@aar'
compile 'com.adpdigital.push:chabok-lib-2.12.1'
compile 'com.adpdigital.push:chabok-lib-geo-2.12.1'
پکیج لوکیشن هم از قبلا داشتم توی پروژه
اما در زمان sync این خطا رو میده:
Unable to resolve dependency for ':app@googleplayDebug/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@googleplayDebugAndroidTest/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@googleplayDebugUnitTest/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@googleplayRelease/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@googleplayReleaseUnitTest/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@myketDebug/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@myketDebugAndroidTest/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@myketDebugUnitTest/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@myketRelease/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@myketReleaseUnitTest/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@iranappsDebug/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@iranappsDebugAndroidTest/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@iranappsDebugUnitTest/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@iranappsRelease/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@iranappsReleaseUnitTest/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@kandooDebug/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@kandooDebugAndroidTest/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@kandooDebugUnitTest/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@kandooRelease/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@kandooReleaseUnitTest/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@hamsaaDebug/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@hamsaaDebugAndroidTest/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@hamsaaDebugUnitTest/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@hamsaaRelease/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@hamsaaReleaseUnitTest/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@bazaarDebug/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@bazaarDebugAndroidTest/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@bazaarDebugUnitTest/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@bazaarRelease/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@bazaarReleaseUnitTest/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@parshubDebug/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@parshubDebugAndroidTest/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@parshubDebugUnitTest/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@parshubRelease/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
Unable to resolve dependency for ':app@parshubReleaseUnitTest/compileClasspath': Could not resolve com.adpdigital.push:chabok-lib-2.12.1:.
Open File
Show Details
سلام ، وقتی برنامه رو کامل ببندم یعنی از توی حافظه هم پاک بشه دیگه نوتیفیکیشن دریافت نمیکنه ، مشکل از کجاست؟ مگر FCM وظیفه این کار رو بر عهده نداره؟
Fatal Exception: java.lang.NullPointerException
at com.adpdigital.push.PushService$b.getService(SourceFile:1409)
at com.adpdigital.push.c.onServiceConnected(SourceFile:745)
at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1131)
at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1148)
at android.os.Handler.handleCallback(Handler.java:800)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5371)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(NativeStart.java)
سلام ، بعضی از روش هایی که برای دریافت FCM استفاده شده قدیمی هستن ، آیا برنامه ای برای آپدیت دارید؟ مثلا GcmReceiver
با سلام در بخش ارسال پیام یک دکمه هستش که تایین میکنه وقتی که اپ روی گوشی کاربر باز است نوتیفیکیشن ارسال شود یا نه که با زدن این دکمه و ارسال پیام پیام در هنگام باز بودن اپ فرستاده نمیشود..
نحوه استفاده از محتوی غیر متنی چجوری هستش؟
در تست اندروید ورژن 8 در گوشی mate 10 lite اعلان نمایش داده نمی شود
با وجود subscribe کردن کانال هنوز نمیتونم پیام درون برنامه ای رو در وقت باز بودن برنامه دریافت کنم و وقتی لاگ رو میبینم این هست:
W/com.adpdigital.push.GcmMessageHandler: Don't notify GCM when app is foreground!
مشکل از کجاست؟
سلام
وقت بخیر
آیا امکان ست کردن تگ به صورت
("key","value")
وجود نداره؟
اگر امکانش نیست آیا راه حل پیشنهادی یا جایگزین دارین پیشنهاد بدید؟
:برای مثال ما میخوایم ست کنیم
key1 : 1111
key2 : [1,2,3]
key3 : [123,234,145]
key4: "android-8"
بعد مثلا برای پوش بگیم کسی که یا کسانی که
key1 = 111
یا
key2 = [1,3]
بهشون پوش بره
امیدوارم تونسته باشم منظورم رو برسونم
با تشکر
وقتی اپلیکیشن ران نیست دیتا نوتیفیکیشن رو از کجا بخونیم
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.