react-native-intercom: Adnroid version 13.0.1 push notifications doesn't work
I am using RN 59.10 and I was using version 12.5.1 and everything worked fine.
Then I upgraded to 13.0.1 and I was not able to receive push notifications.
I downgraded to 12.5.1 and it work again.
In logs I catch this error:
AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.robinpowered.react.Intercom.IntercomIntentService" on path: DexPathList[[zip file "/data/app/com.myapp.app-MjCojLNq91ID9dVsmf902Q==/base.apk"],nativeLibraryDirectories=[/data/app/com.myapp.app-MjCojLNq91ID9dVsmf902Q==/lib/arm64, /data/app/com.myapp.app-MjCojLNq91ID9dVsmf902Q==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64, /product/lib64]]
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 16 (1 by maintainers)
You no longer need the
IntercomIntentServiceafter v13, so you can just remove it from your AndroidManifest.xmlSee -> https://github.com/tinycreative/react-native-intercom/releases/tag/v13.0.0
What worked for me was:
changing intercom sdk version to
implementation 'io.intercom.android:intercom-sdk:6.+sending FCM to Intercom
Intercom.sendTokenToIntercom(token)IMPORTANT! Leaving just one
<action android:name="com.google.firebase.MESSAGING_EVENT" />in AndroidManifest.xml I had three of them, one from expoKit, one from react-native-firebase and one from intercom. I left only the one from intercom, which was already extendingRNFirebaseMessagingService@MayoudP , I used to make Intercom work with OneSignal, it didn’t require Firebase before, I just did
This gives me a valid push token, and Intercom support tells me they actually receive it. I can also send pushes from FCM console with this token and receive them.
However, if I try to send a push through Intercom interface, I don’t receive them anymore (in 13.0 installDebug build).
Worst: it used to work in production (afaik, older Intercom SDK) and now it doesn’t… so it means it’s actually not this update (this is not published yet) that broke the android pushes in our app. Sadly we only noticed now that this is not working for a while.
To me it looks like there’s something wrong with Intercom. My app is able to receive pushes sent by a curl command, but not pushes sent by the interface, yet the support tells me they see and received the token I sent them.
Note that in the FCM dashboard it does not even show their push attempts (we are in prod for a while and afaik android intercom pushes used to work… not anymore).
Edit: problem is definitively on their side, their logs show “push sent to GCM”, see https://twitter.com/sebastienlorber/status/1227665034312134656
@MayoudP Ok, I deleted all other services which are related to firebase.MESSAGING_EVENT from AndroidManifest.xml, then it seems working
Hello @tuncaulubilge This is my manifest :
And MyMessaginService (because I’m also using OneSignal for my push notifications, so need to handle both services I guess as explained in the doc…
Versions :
OneSignal push notifications are working very well, but Intercom ones doens’t, I never received them. I tried literally everythings… Did you have any tips or hint to help me please and make it works 😢 ?