Key com.backendless.messageid receiving String instead of INT

Try invalidating your project and gradle cache as Oleg and I suggested.

To clear Gradle cache - delete everything related to Backendless at ~/.gradle/caches/
Project cache can be invalidated in your IDE - File > Invalidate Caches/ Restart (then click Invalidate and restart)
Android Studio makes a lot of files as caches and deletes them on request. This may be causing issues including yours.

According to the stacktrace you posted (lines 143 and 94 of BackendlessBroadcastReceiver.java) your project still references 3.x library, you can see it here: https://github.com/Backendless/Android-SDK/blob/3.X/src/com/backendless/push/BackendlessBroadcastReceiver.java
BackendlessBroadcastReceiver class is completely different in v4-5 of Backendless, it contains less then 80 lines of code: https://github.com/Backendless/Android-SDK/blob/master/src/com/backendless/push/BackendlessBroadcastReceiver.java

Please try invalidating caches, when done - clear and build your project, repeat your message publishing/receiving scenario and let us know about results.

Regards,
Anton

Hi Ralph,

Could you please send me a private message with your app ID and “Google Project Number” (the value you use in the registerDevice API call)? I’d like to try a basic test with your app/settings. You can send the message to the support user.

Regards,
Mark

Hi Anton,
I have done that but still… In fact the crash stack I have sent you was taken from my Play Console so most probably this could be occuring on devices having an older version of my app.

Anyway, I will double check and let you know!

Hi Mark,

yes of course, I will send you that.

Thank you!

Thanks, Ralph. Coincidentally, someone else reported a problem which occurs only with Android 8 (notifications work on prior versions). Could you please let me know if this is the version of the OS you’re using?

Indeed Mark, I have Android 8.

Few questions:

  1. Are you testing on an emulator or on real device?
  2. Could you please send your android.manifest to support@backendless.com or attach it here in the topic?

Anton

I always test on my own device. Never used the emulator.
I will send you my manifest by email as it has confidential information and keys.

Regards :slight_smile:

Hi Ralph

We eventually found what might be causing issues with Android 8 devices. We’ll roll out a new version of Android SDK soon, and will notify you as soon as it will be available. We do not expect that the fix will take too long. But currently as a workaround you can try creating your own classes of push receiver and push service and handle notifications by yourself as described here: http://backendless.com/docs/android/doc.html#push_push_notification_setup_androi

Please let us know whether everything is ok with devices > 26 API on your side.

Anton

Hello Anton!

Thank your reply, I guess I’d prefer to wait until the issue is fixed in the SDK.
I haven’t been able to test it on a device > 26 API but I am quite sure it is working, I have users receiving my notifications correctly.

Do you have any idea on the ETA of this fix ?

Thanks!!

Hi, Ralph.
A new backendless.jar (our Android sdk) have been already deployed to central maven repository under version 5.0.3 and will be available in 1-2 days.

1 Like

Great news!
Thanks Oleg :slight_smile: