Extending the plugin to handle two separate push providers #5619
Replies: 1 comment 2 replies
-
Hi there! "two separate push providers" --> I'm not sure how this is relevant? There is actually only one way to receive cloud messages I'm aware of at the device level, FCM on Android, APNs on iOS. This module here on device is more of a "receiver", not a "pusher", Push away, from OneSignal, Firebase, direct to google or Apple REST APIs, however you like. The tokens and message receipt here are the FCM token and APNs tokens, and receipt of FCM and APNs messages, if there are other actual cloud-to-device message send styles that we're missing, then they would need addition at the native level I think. Perhaps you are looking for Huawei or similar support? With a great deal more specifics, I can perhaps think about it in a less vague way. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to use this plugin in my app to handle push notifications from two separate push providers, but am not currently able to do that (as far as I can see). If this is not currently possible in this module, is it possible to add something like this?
It looks like we need the ability in react-native to somehow override methods onNewToken and onMessageReceived?
Beta Was this translation helpful? Give feedback.
All reactions