Community

Community Forums

Where our customers, developers, and more can come together to help each other with both general and technical questions about our products and services.

Android crash happening for 8 and above

Matt Kupstas

 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

Please sign in to leave a comment.

0
Avatar

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

Jade Westover 0 votes
0
Avatar

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

Matt Kupstas 0 votes
0
Avatar

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

Matt Kupstas 0 votes
0
Avatar

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

Matt Kupstas 0 votes
0
Avatar

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

Matt Kupstas 0 votes