-
Notifications
You must be signed in to change notification settings - Fork 1.9k
When receiving notification app can be crashed #484
Comments
@dhanasekaranv what version of Android are you running on? Can you capture |
Closing for inactivity |
@macdonst - I have the same problem . using last npm version with phonegap build cli-6.1.0. |
@macdonst Sorry I don't understand #909 as I'm using Cloud Phonegap (https://build.phonegap.com) . I cannot change Play store service as it is build on the cloud ...or please tell me how ? |
This thread has been automatically locked. |
I am using this plugin for cordova android push notification. when i receive the notification app can be crashed(unfortunately app has stopped).
I am using the following code
var push = PushNotification.init({
"android": {
"senderID": "my project id"
},
"ios": {"alert": "true", "badge": "true", "sound": "true"},
"windows": {}
});
push.on('registration', function(data) {
var GCMid=data.registrationId;
});
push.on('error',function(e){
alert(JSON.stringify(e));
});
push.on('notification', function(data) {
alert('received');
});
Please give the solution for this issue.
The text was updated successfully, but these errors were encountered: