Gcm Update 7.5 To 8.3.0 Fatal Exception
I tried to update the GCM services (Google cloud messages) libraries (from 7.5 to 8.3.0) in my Gradle project. But now, with this new version, i'm unable to launch my previous acti
Solution 1:
Try looking at the decompiled class file for GcmListenerService
using your IDE. When I do that with Android Studio for version 8.3.0, the code that appears to be throwing the exception is attempting to get the ACTION from the intent that invoked the service. Because you are invoking the service with an explicit intent, the ACTION is null.
I'm wondering why you are invoking your subclass of GcmListenerService
explicitly? The normal GCM processing for message receipt is for the message to be delivered to GcmReceiver
, which then passes it to the app's instance of GcmListenerService
for processing. You should not be invoking your listener service explicitly, GcmReceiver
does that. Take a look at the sample project.
Post a Comment for "Gcm Update 7.5 To 8.3.0 Fatal Exception"