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); } }});