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

Notification issue iOS and Firebase Cloud Messaging react-native

$
0
0

I am trying to send notification from Firebase Cloud Management my iOS Application is not getting notifications and this function is not getting called.

I am getting fcm_registration_id

import firebase from '@react-native-firebase/app';import messaging from '@react-native-firebase/messaging';
messaging().onMessage((message) => {  const {data} = message;  console.log('---Message Received---', message);  if (data.type === 'call') {    if (Utility.isAndroid()) {      NativeModules.Heartbeat.startHeadlessService();      setTimeout(() => {        navigate('CallerScreen', {info: message});      }, 400);    }  }});

Viewing all articles
Browse latest Browse all 16750

Trending Articles



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