App Crashing Due to Missing Kotlin Coroutine Dispatcher in OneSignal

Hello Niotron Team,

I am experiencing a critical crash after publishing an app update built using the Niotron platform. The app crashes during initialization due to missing coroutine dependencies, specifically related to the OneSignal.

Here is a snippet from the crash log:

Caused by java.lang.IllegalStateException: Module with the Main dispatcher is missing.
Add dependency providing the Main dispatcher, e.g. 'kotlinx-coroutines-android'
and ensure it has the same version as 'kotlinx-coroutines-core'

It appears that the kotlinx-coroutines-android library is not bundled with the OneSignal extension or there’s a version mismatch with kotlinx-coroutines-core. Since the extension uses Dispatchers.Main, this is causing ExceptionInInitializerError.

Could you please update the OneSignal extension or the base SDK to include the proper coroutine dependencies?

Looking forward to a prompt fix as this is impacting app stability on Google Play.

Are you referring to the built-in component or an extension?

built in component

This issue has been fixed in both versions, AAB’s still have issues, Planning on releasing the update today

1 Like

ok thank you for adressing that issue i mentioned , it is fixed now or released the update

1 Like

The update isn’t released yet

when you planning to release the update, i need to push the aab update in play

Feel free to test it out and let me know if it works.

thank you so much for fixing the issue. iam going to push the new update on google play if any errors i will report here , anyway thank you

1 Like

Thank you so much, @abhijith .I really appreciate your quick support and effort in resolving the issues. Glad to see the update live and running smoothly on the Play Store now. A big thanks to you and the entire Niotron team for the continued support! :raising_hands::folded_hands:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.