OneSignal / OneSignal-Cordova-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your Ionic, PhoneGap CLI, PhoneGap Build, Cordova, or Sencha Touch app with OneSignal. Supports Android, iOS, and Amazon's Fire OS platforms. https://onesignal.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Not receiving push notifications when used with FirbaseMessagingService (Android)

Lucaszw opened this issue · comments

What happened?

Push notifications work fine for Android when only using onesignal-cordova-plugin (on the latest version of Capacitor) for notifications.

However... it stops working as soon as we implement FirebaseMessagingService, implemented according to the steps layed out for for Intercoms' Push Notifications.

Screenshot 2023-11-29 at 8 07 18 PM

Steps to reproduce?

1. Install onesigna-cordova-plugin on latest version of Capacitor (v5) on Android
2. Push notifications work
3. Setup Intercom Push via (https://developers.intercom.com/installing-intercom/android/fcm-push-notifications/)
4. Intercom Push notifications work, but no longer OneSignals.

Note, they constantly show as Permission Not Granted; however we have confirmed with the prompt.

What did you expect to happen?

Be able to use OneSignal and Intercom for Push Notifications at the same time

OneSignal Cordova SDK version

5.0.3

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct