Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

When receiving notification app can be crashed #484

Closed
dhanasekaranv opened this issue Jan 9, 2016 · 6 comments
Closed

When receiving notification app can be crashed #484

dhanasekaranv opened this issue Jan 9, 2016 · 6 comments

Comments

@dhanasekaranv
Copy link

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.

@macdonst
Copy link
Member

@dhanasekaranv what version of Android are you running on? Can you capture adb logcat while reproducing the problem? That will help us figure out what is going on.

@macdonst
Copy link
Member

macdonst commented Mar 9, 2016

Closing for inactivity

@macdonst macdonst closed this as completed Mar 9, 2016
@Mobiwoom
Copy link

Mobiwoom commented Jul 5, 2016

@macdonst - I have the same problem . using last npm version with phonegap build cli-6.1.0.
Working well on IOS , crash when receiving notification on ANDROID

@macdonst
Copy link
Member

macdonst commented Jul 5, 2016

@Mobiwoom see #909. You probably need to update your Google Play libraries on build machine and device.

@Mobiwoom
Copy link

Mobiwoom commented Jul 5, 2016

@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 ?
My device has last update - Samsung S7
plug in was working with 1.6.3 , I've tryed 1.6.4 and last repo 1.7 , nothing changes...
here is my config.xml plugin setup
plugin name="cordova-plugin-contacts" spec="2.1.0" /
plugin name="cordova-plugin-device" spec="1.1.2" /
plugin name="cordova-plugin-dialogs" spec="1.2.1" /
plugin name="cordova-plugin-file" spec="4.2.0" /
plugin name="cordova-plugin-geolocation" spec="2.2.0" /
plugin name="cordova-plugin-inappbrowser" spec="1.4.0" /
plugin name="cordova-plugin-media" spec="2.3.0" /
plugin name="cordova-plugin-network-information" spec="1.2.1" /
plugin name="cordova-plugin-nfc" source="pgb" spec="1.0.1" /
plugin name="cordova-plugin-splashscreen" spec="3.2.2" /
plugin name="cordova-plugin-statusbar" spec="2.1.3" /
plugin name="cordova-plugin-whitelist" spec="1.2.2" /
plugin name="phonegap-plugin-push" spec="1.6.4" /
any help ? regards

@lock
Copy link

lock bot commented Jun 4, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants