Open cyber-pride opened 10 months ago
I am having same issue and can not solve it for 3 months now :(
On iOS the onBackgroundMessage function from Fcm does't trigger at all. The notification arrive on time but the function doesn't trigger to start the incoming call screen :(
Somebody please share the solution.
thanks
on ios the only way to get push notifications when the app is in the background is to use PushKit
@dadagov125 How to test voip notification? Do you have any idea?
@mihir-concetto You can test voip notifications like this:
curl -v \ -d '{"aps":{"alert":"Hien Nguyen Call"},"id":"44d915e1-5ff4-4bed-bf13-c423048ec97a","nameCaller":"Hien Nguyen","handle":"0123456789","isVideo":true}' \ -H "apns-topic: com.hiennv.testing.voip" \ -H "apns-push-type: voip" \ --http2 \ --cert VOIP.pem:'<passphrase>' \ https://api.development.push.apple.com/3/device/<device token>
Make sure to:
Change com.hiennv.testing.voip
to your app bundle (Must add .voip
at the end)
Change <passphrase>
to be path to your .pem file.
Change <device token>
to your device's voip token.
I am using fcm push notifications to trigger call both in android and ios. In android it works even when the app is in background, but in ios I am getting push notification but call kit ui is not triggered. Do we need to implement push kit even if fcm package is used ?