Android crash happening for 8 and above

 Hi,

We are using cordova 6.2 and urbanairship-cordova 6.6.0 "Urban Airship"

We are facing android crash issue for android 8 and above and getting below exception

java.lang.IllegalStateException:
 
at android.app.ContextImpl.startServiceCommon (ContextImpl.java:1538)
 
at android.app.ContextImpl.startService (ContextImpl.java:1484)
 
at android.content.ContextWrapper.startService (ContextWrapper.java:663)
 
at com.urbanairship.job.JobDispatcher.dispatch (JobDispatcher.java:63)
 
at com.urbanairship.richpush.RichPushUser.update (RichPushUser.java:114)
 
at com.urbanairship.richpush.RichPushInbox.init (RichPushInbox.java:180)
 
at com.urbanairship.UAirship.init (UAirship.java:577)
 
at com.urbanairship.UAirship.executeTakeOff (UAirship.java:357)
 
at com.urbanairship.UAirship.access$000 (UAirship.java:43)
 
at com.urbanairship.UAirship$2.run (UAirship.java:317)
 
at java.lang.Thread.run (Thread.java:764)
 
Can you please have a look?
 
Thanks

Didn't find what you were looking for?

New post

Comments

6 comments

  • Hi Matt,

    I would recommend updating your SDK as there have been many bug fixes since 6.6.0. After updating let us know if you are still experiencing issues, and we will troubleshoot further.

    Cordova setup docs: https://docs.urbanairship.com/platform/cordova/

    Thanks,

    Jade Westover
    Technical Support Engineer
    Urban Airship | Portland, OR

    0
  • Hi Jade,

    Now we are using

    Cordova 8.1 and Urban Airship version 7.3.4 but we are not able to send push to devices through UA console and in error console we get below message

     

    Application does not have permission to send to this device

    Original Message: Error: mismatched sender ID

     

    We double checked the sender ID and it looks correct.

    Can you please have a look?

    Thanks

    0
  • Also can you please let us know sender id you have seen? Here we have configured it as 637577929034

    0
  • Hi Matt

    This error can occur for a number of reasons. I would recommend following the GCM/FCM Troubleshooting Guide (https://support.urbanairship.com/hc/en-us/articles/213492643-GCM-FCM-Troubleshooting-Guide) and see if any of the fixes in there solve the issue.

    Is the previous issue still occurring, or are you only experiencing the latter issue now?

    Thanks,

    Jade Westover

    0
  • Hi Jade,

    Yeah earlier error is no longer occurring. We have gone through that guide and it seems to be correct. Can you please check exactly what sender id you are seeing at your end?

     

    Thanks

    0
  • Hi Jade,

    This issue is solved now. As we have upgraded Urban Airship plugin then it is required to configure FCM and not GCM. So in config.xml file we were still referring sender id which was not required. After removing this we got push notifications.

    Thanks

    0

Please sign in to leave a comment.