Skip to content Skip to sidebar Skip to footer

Android App Crashes When Push Is Received And App Is Closed

I'm developing an Android & iOS App with cordova. Current Version there is 2.2.0. I've got the following Java code to show the Push Notification: private void putNotification(S

Solution 1:

in your code java.lang.NullPointerException exception occurs due to null context..

so,use context which is passed in onMessage method

protectedvoidonMessage(final Context context, Intent intent)

use this context in your GCMIntentService class

Post a Comment for "Android App Crashes When Push Is Received And App Is Closed"