Android push notification crashes app

4 posts, 0 answers
  1. Zinc
    Zinc avatar
    23 posts
    Member since:
    Aug 2013

    Posted 24 Sep 2013 Link to this post

    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.
  2. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 25 Sep 2013 Link to this post

    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.
  3. Zinc
    Zinc avatar
    23 posts
    Member since:
    Aug 2013

    Posted 25 Sep 2013 Link to this post

    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).
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 26 Sep 2013 Link to this post

    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.
Back to Top