After I create a custom push notification class and use it I receiver a gradle warning saying
Warning:warning: Cannot find annotation method 'value()' in type 'GuardedBy': class file for javax.annotation.concurrent.GuardedBy not found
Also, I receive a crash report on google play from Lollipop device with log
java.lang.RuntimeException: Unable to start receiver com.wordpress.suhooli.horoscopebook.receiver.BackendlessPushNotificationReceiver: java.lang.RuntimeException: AUTHENTICATION_FAILED at android.app.ActivityThread.handleReceiver(ActivityThread.java:2646) at android.app.ActivityThread.access$1700(ActivityThread.java:155) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1394) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5343) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) Caused by: java.lang.RuntimeException: AUTHENTICATION_FAILED at com.backendless.push.BackendlessBroadcastReceiver.onError(BackendlessBroadcastReceiver.java:148) at com.wordpress.suhooli.horoscopebook.receiver.BackendlessPushNotificationReceiver.onError(BackendlessPushNotificationReceiver.java:29) at com.backendless.push.BackendlessBroadcastReceiver.handleRegistration(BackendlessBroadcastReceiver.java:292) at com.backendless.push.BackendlessBroadcastReceiver.handleIntent(BackendlessBroadcastReceiver.java:159) at com.backendless.push.BackendlessBroadcastReceiver.onReceive(BackendlessBroadcastReceiver.java:128) at android.app.ActivityThread.handleReceiver(ActivityThread.java:2639) ... 9 more
According to link you give me, It’s because of Google account configure on his/her account right? But this error is from device running Android 5.1 (Lollipop), but according to this link https://developers.google.com/cloud-messaging/android/client “A Google account is not a requirement on devices running Android 4.0.4 or higher.”
I guess that the device has incorrect credentials. According to the link you’ve provided credentials are optional, but behaviour for incorrect credentials is unclear.
Can you verify the credentials validity? Also answer please if you have such problems on single device or on all devices?
I can only see one report of this problem on Google Play console, but on Google Play console it say “The error trace you requested is older than the retention period, but similar errors have been recorded recently”, so I guess there are more than 1 device.
Also I can’t or don’t know how to verify the credentials validity, because this error doesn’t happen on my test device (Samsung Galaxy Note 4 running Android Lollipop) except the gradle warning.
Could it because Backendless use old gcm library? Because I think google account is still require on old gcm library.
Do you mean that you don’t have error “AUTH_FAILED” on the test device, but some of your customers do?
About verification: google account is configured through the smartphone settings, so in order to verify you should have that device and navigate to “Settings” -> “Accounts” -> “google”.