This is a migrated thread and some comments may be shown as answers.

Android push notification crashes app

3 Answers 68 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Zinc
Top achievements
Rank 1
Zinc asked on 24 Sep 2013, 05:26 AM
I have an app with the push notification plugin. I'm sending a notification to GCM, using PushSharp to do the sending. Everything works in iOS, but it doesn't work too well on Android:

If the app is open in the background, the alert appears, I click on it and it opens the app.

If I kill the app, then click on an alert, it tries to open the app then crashes back to the home screen. If I then show running apps and try switching to the app, it crashes again and goes back to the home screen. I need to kill the app to get it to work again.

I've tried with Push Plugin 1.2.2 and 1.3.3, and Cordova 2.x and 3.0. I've read of this issue on some other forums, no resolution. And there's mention of the problem here, http://www.icenium.com/resources/forums/report-a-bug-/pushplugin .

I'm testing with a Samsung Galaxy S3, running Android 4.1.2.

Do you have any idea what's happening? It would be pretty embarrassing to publish an app that crashes like this. Thanks.

3 Answers, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 25 Sep 2013, 11:49 AM
Hello Zinc,

There is an issue here reported for the PushPlugin. There are suggestions in the comments how to workaround this for Cordova 3.0.

Hope this helps,
sdobrev

Big news for mobile app and .NET developers! Hear about it at our Release Keynote. Thursday, September 26th, 11AM EDT
Do you enjoy Icenium? Vote for it in Windows IT Pro Community Choice Awards as Best Cloud Computing Product or Service (Category 5).
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Zinc
Top achievements
Rank 1
answered on 25 Sep 2013, 11:40 PM
Thanks Stefan. If I make a change to the Cordova source and compile it, how can I include it in my Icenium project? I can only see an option  to pick from a list of approved versions (2.7, 3.0, etc).
0
Steve
Telerik team
answered on 26 Sep 2013, 01:47 PM
Hi,

You cannot change or modify the Cordova version in an Icenium project manually, so the suggestion to manually modify the Cordova code is not applicable. We were referring to the changes in the plugin itself or downgrading to 2.x version of Cordova until this is fixed in Cordova 3.1.

Regards,
Steve
Telerik

Big news for mobile app and .NET developers! Hear about it at our Release Keynote. Thursday, September 26th, 11AM EDT
Do you enjoy Icenium? Vote for it in Windows IT Pro Community Choice Awards as Best Cloud Computing Product or Service (Category 5).
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
Report a bug
Asked by
Zinc
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Zinc
Top achievements
Rank 1
Steve
Telerik team
Share this question
or