IllegalStateException Crashes

I’ve asked engineering to look into this as soon as possible.

Rob

Thanks Rob - appreciate it.

Just to recap - here are our current plugins on Android…

[“plugin.gameanalytics”] =

{

publisherId = “com.gameanalytics”,

},

        – [“plugin.OneSignal”] =

        – {

        –     publisherId = “com.onesignal”,

        – },

        [“plugin.advertisingId”] =

        {

            publisherId = “com.coronalabs”

        },

        [“CoronaProvider.native.popup.social”] =

        {

            publisherId = “com.coronalabs”

        },

        – [“CoronaProvider.native.popup.activity”] =

        – {

        –     publisherId = “com.coronalabs”

        – },

        [“plugin.notifications.v2”] =

        {

            publisherId = “com.coronalabs”

        },

        [“plugin.googleAnalytics”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { iphone=true, android=true, }

        },

        [“CoronaProvider.analytics.flurry”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { iphone=true, android=true }

        },

        [“CoronaProvider.gameNetwork.google”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { android=true }

        },

        [“plugin.CoronaSplashControl”] =

        {

            publisherId = “com.coronalabs”

        },

Yes, the problem seems to be in the new corona 3326 itself. We have around 20-25 apps on Store and as Google said support API level 26+ support then we updated corona and start updating apps, we have just updated 4 or 5 i think yet and were checking stats. Its horrible our crash rate increased a lot, previously it was close to 99.9, 99.8 and so on and now its around 98, 97 and even 96 on one app.

We have used plugins like Admob, Notifications V2, GPGS v2 and splash screen control. 

Note: No change has been done in build other than just taking build with the new Corona sdk 3326.

Please anyone if know how to solve this, please comment below so all can get the benefit from it.

What happens if you use the latest daily build?

Rob

So we pushed out a release based on 3462 on Feb 7 with a 50% rollout. It’s the 12th now so we are 5 days in.

Reporting on the Google Play console is with last 1 day or last 7 days, so not enough granularity, but…

1 day

3326: 17 IllegalStateException

3462: 0 IllegalStateException

7 day

3326: 69 IllegalStateException

3462: 0 IllegalStateException

Looking good on the latest build! Will give it a couple more days then crank it up to a full rollout.

NOTE: This is all using the OneSignal REST API (not the plugin). Would be great to see this same experiment with the plugin.

Still no IllegalStateExceptions. 30 day crash rate slowly dropping… down to 6.21%

Hi, good to hear that. 

Does anyone have an experience with OneSignal Plugin? I would prefer not to rewrite it to REST API.

We’ve just made a build that goes back to the plugin on a current build - will be releasing today and I’ll update here with progress.

Any feedback yet?

Looks good - problem seems to have gone away.

Great! Thanks!

One thing, are you getting callback to “DidReceiveRemoteNotification(message, additionalData, isActive)” function from OneSignal.Init?

I don’t anymore with 3462 build. Did anything changes in this element?

Didn’t notice. After problems with Notifications v2 I’ve reverted all the way back to v1 - keeping an eye out for crashes.

So is the plugin now updated with this fix? All I have to do is use a newer daily build and I’m good to go? Was having tons of crashes on Android 8+ but haven’t checked too recently.

That’s what worked for us.

Great, thanks! Fingers crossed.