Backendless Support
 
Solved

Backendless 5.0.0 Push Notification Cannot be Received

Hi,

I just updated my Backendless version from 4.4.0 to 5.0.0. I applied the changes as guided in the document (Firebase migration, etc.). I can publish a delayed push notification using Android API and I receive the message id.

The problem is, scheduled message is never received. I tried to check the status of the message using Rest API but I got the response below:

  1. {
  2. "errorMessage": "Could not find status for message with id: message:6C6C00B2-7A16-0CC3-FF7D-6492B2C29E00",
  3. "messageId": "message:6C6C00B2-7A16-0CC3-FF7D-6492B2C29E00",
  4. "status": "unknown"
  5. }

There was a similar issue when I updated from version 3 to 4. It might be the same. Sergey Chupov helped me alot with the previous one and hope he will solve this as well :) Previous issue was here: http://support.backendless.com/topic/push-notification-not-working

Any help would be appreciated. Thanks.

Leave a Comment

Comments (3)

photo
1

Are you facing this problem only with delayed messages?

Anton

photo
1

No. The thing is I found something interesting and want to write the update here:

In Backendless Settings, I just added new Firebase Server key but selecting the "default" channel instead of "All". Because I had the old server key selected as "All Channels". I deleted all of the server keys and added Firebase Server Key and select "All Channels" option and I started to receive push notifications again. This is great!

But I have another problem. I am not sure to continue under this topic or create another one.

I try to migrate my application to support Android 8's push notification channels. In order to do this, I create a local channel in my application. I do this in the async callback of "Backendless.Messaging.registerDevice()" method. I create my channel and send a local notification. The problem is my notification is shown for an instance then disappears. It is very strange. When I try to show a notification just couple of seconds after I got a response in handleResponse() callback, it works.

In summary, my notification is quickly shown and disappears if I use the code below:

Backendless.Messaging.registerDevice(GCM_SENDER_ID, new AsyncCallback<Void>() {

@Override

public void handleResponse(Void response) {

createNotificationChannel();

sendNotificationLocally();

}

});

It is a problem with registerDevice() method because I can successfully show a notification if I do not use this method and just execute the code below:

createNotificationChannel();

sendNotificationLocally();

I really need your help about this. Thanks.

photo
1

I believe it would be better to create a separate topic. Also share a snippet of these methods as well createNotificationChannel();sendNotificationLocally();

Anton