Open timorss opened 3 years ago
well i manged to wake app the app when there is a call, but only on android with fire base. but firebase doesn't work with ios, any idea?
Hi @timorss, To be able to wake up an iOS device, you have to send a VOIP push notification
well i manged to wake app the app when there is a call, but only on android with fire base. but firebase doesn't work with ios, any idea?
can you share your solution for android, thanks
well i manged to wake app the app when there is a call, but only on android with fire base. but firebase doesn't work with ios, any idea?
can you share your solution for android, thanks
In the index file
const answerCall = (data: any) => { console.log('answer call'); const { callUUID } = data; RNCallKeep.setCurrentCallActive(callUUID); RNCallKeep.backToForeground() RNCallKeep.endCall(callUUID);
navigate('chime', { data: { meetingToken: callUUID } })
};
RNCallKeep.addEventListener('answerCall', answerCall);
messaging().setBackgroundMessageHandler(async remoteMessage => { RNCallKeep.displayIncomingCall(remoteMessage.data.meetingToken, '1234', 'title'); });
for ios it doesn't work.
Bug report
[ ] I've checked the example to reproduce the issue.
Reproduced on:
Description
I'm struggling to change a firebase push notification to an incoming call. Is it even possible? Do I have to change the android or ios native code? Thanks.
Steps to Reproduce
Versions
Logs