Backendless Support
 
Answered

Java.util.HashMap cannot be cast to com.backendless.services.messaging.MessageStatus

Hi,

I have the problem:

"java.util.HashMap cannot be cast to com.backendless.services.messaging.MessageStatus"

when sending a push notification from an android 4.4 device.

In another devices with android 6.X it works perfectly.

What can we do?

Regards,

Leave a Comment

Comments (3)

photo
1

hello,

cannot reproduce the issue,

please find attached the project

result of execution is

  1. 10-23 16:25:17.950 22454-22454/com.examples.test_push_andr_4_4 I/messaging: registred device
  2. 10-23 16:25:19.970 22454-22454/com.examples.test_push_andr_4_4 I/messaging: publish status: SCHEDULED
  3. 10-23 16:25:21.360 22454-22454/com.examples.test_push_andr_4_4 I/messaging: push status: PUBLISHED
  4. 10-23 16:25:21.360 22454-22454/com.examples.test_push_andr_4_4 I/messaging: error: null

I have checked with Samsung Galaxy S3, android version 4.4.4

photo
1

okkkkkkkk,

Comparing your build.gradle with mine, I made the following changes in my project:

  • compileSdkVersion 25, minSdkVersion 14, targetSdkVersion 25

by

  • compileSdkVersion 23, minSdkVersion 16, targetSdkVersion 23

and

  • compile 'com.backendless:backendless:4.0.+'

by

  • compile group: 'com.backendless', name: 'backendless', version: '4.0.3'

and now it works perfectly !!!!

Many thanks Sergey,

photo
1

Ohhhh, after sending several messages I again have the same problem ...

Continue looking for differences ...