chat-sdk-android icon indicating copy to clipboard operation
chat-sdk-android copied to clipboard

notifications stop coming after adding to existing project

Open prajitkk opened this issue 9 years ago • 3 comments

when i use chat-sdk app alone notifications are working but after adding to the existing project it stopped to show notifications, i have done all the steps as indicated by you, should i have to include anything new to get notifications

prajitkk avatar Jul 23 '17 04:07 prajitkk

Hi @prajitkk,

We have found that sometimes Backendless starts working once the app is added to iTunes Connect. This doesn't mean it needs to be released but there is something in the upload to iTunes that seems to enable the set up to work consistently.

If you have completed all the steps in the instructions I would check the following:

  1. Go to the Backendless dashboard and confirm the push notifications are being sent. You can click on the specific device and see them when your device sends them.
  2. If you can't confirm 1 let me know and I will show you where to look. If 1 isn't working you need to ensure you have set up push notifications correctly.
  3. If you can complete 1 and 2 correctly then I would upload your app to iTunes connect. You can then download a version using TestFlight and once again test the push notifications. If your pushes were previously being sent then they should be received correctly now.
  4. If 3 doesn't work then you should get back to us on this thread and also post a bug report on the Backendless support page.

Let me know if this helps,

Ben

bensmiley avatar Aug 02 '17 12:08 bensmiley

i am getting an error java.lang.RuntimeException: Could not register device on Backendless server: Version is disabled or provided wrong application info (application id or secret key) at com.backendless.push.BackendlessBroadcastReceiver.onError(BackendlessBroadcastReceiver.java:148 at com.backendless.push.BackendlessBroadcastReceiver$1.handleFault(BackendlessBroadcastReceiver.java:310) at com.backendless.Messaging$2.handleFault(Messaging.java:247)at com.backendless.async.message.AsyncMessage$FaultHandler.handle(AsyncMessage.java:83) at com.backendless.async.message.AsyncMessage.handleCallback(AsyncMessage.java:41) at com.backendless.core.AndroidCarrier$1.handleMessage(AndroidCarrier.java:37)at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:207)at android.app.ActivityThread.main(ActivityThread.java:5740) at java.lang.reflect.Method.invoke(Native Method)at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:766)

prajitkk avatar Aug 06 '17 08:08 prajitkk

Are you working on android or ios? If you are working on android, I got same error, here is the step I fixed it

  1. In build.gradle (Module:sdk), replace the backendless compile 'com.backendless:backendless:4.0.+'
  2. Check backendless api document for details (https://backendless.com/docs/android/doc.html#basicpush). Replace the appKey and secreKey.

Allansk2 avatar Sep 13 '17 14:09 Allansk2