Android Crash - in host.exp.exponent.experience.BaseExperienceActivity.registerForNotifications

Please provide the following:

  1. SDK Version: SDK 35
  2. Platforms(Android/iOS/web/all): Android

Hi everyone,

I am in a project using the managed workflow and getting a lot of crashes on Android version 9 only.

Error is the following the crash report for play console.

New in version 5
java.lang.IllegalStateException
in host.exp.exponent.experience.BaseExperienceActivity.registerForNotifications

New in version 5
java.lang.IllegalStateException
in host.exp.exponent.experience.BaseExperienceActivity.registerForNotifications

I am not using notification in the project. I read somewhere it may be linked to the notification system that changed from something to another but as I am not using notification I don’t see how it affects me and moreover didn’t find any solution.

We, unfortunately, started getting bad review due to this crash so I would very much appreciate any lead on how to solve it.

Best

Hey @ivonig,

We’ll have to investigate this but in the interim, it might be worth trying to upload an FCM API key for your pojrect (even though you don’t use notifs) as that may resolve the crash. https://docs.expo.io/versions/v35.0.0/guides/using-fcm/

Cheers,
Adam

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