Skip to content Skip to sidebar Skip to footer

App Crashes On Received Gcm Message When It's Closed

When my app is closed (i.e swiped off by the user from the App Switching menu), it crashes in onMessageReceived(). Here's onMessageReceived(): @Override public void onMessageReceiv

Solution 1:

From here you seem to be having an un-expected behavior... Probably from the getAppContext() function... try using getApplicationContext() instead.


Post a Comment for "App Crashes On Received Gcm Message When It's Closed"