Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 17226

React Native Firebase - on iOS onMessage event is not firing in Foreground

$
0
0

This question was submitted in GitHub issues here - reposting with a hope to save time for others running into the same problem

Trying to change the push notifications package used by an old app to the latest React Native and Firebase messaging. I have set up a new app from scratch to isolate the issue - all new identifiers, bundle ids, certificates, etc. The only things installed in the new project are yarn add @react-native-firebase/app and @react-native-firebase/messaging

On Android everything works. On iOS background and killed state messages are also working, but onMessage event is never fired when in Foreground😢

I followed all the latest guides on https://reactnative.dev/docs/environment-setup , https://rnfirebase.io/ , https://rnfirebase.io/messaging/usage and https://rnfirebase.io/messaging/usage/ios-setup.

I am sending the notifications with AWS SNS.


Viewing all articles
Browse latest Browse all 17226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>