We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently it would seem iOS only accepts the following to receive a remote message:
firebase.messaging().onMessage((notification) => { });
Currently, Android also has on available, which doesn't work in iOS I think:
on
firebase.messaging().on(firebase.messaging.EVENT_TYPE.Notification, (notification) => { });
Whats the correct way we should handle this cross platform?
The text was updated successfully, but these errors were encountered:
@Ehesp I need to look into this, i think they should both be the same method, must've missed something during the implementation
Sorry, something went wrong.
onMessage works across both platforms and is the documented method as per: http://invertase.io/react-native-firebase/#/modules/cloud-messaging?id=onmessagelistener-functionltobjectgt so I'm going to close this
onMessage
No branches or pull requests
Currently it would seem iOS only accepts the following to receive a remote message:
Currently, Android also has
on
available, which doesn't work in iOS I think:Whats the correct way we should handle this cross platform?
The text was updated successfully, but these errors were encountered: