flutter_callkit_incoming icon indicating copy to clipboard operation
flutter_callkit_incoming copied to clipboard

Callkit not displaying on ios using fcm

Open cyber-pride opened this issue 5 months ago • 4 comments

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 ?

cyber-pride avatar Jan 26 '24 14:01 cyber-pride

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

Jazzykhan avatar Feb 10 '24 23:02 Jazzykhan

on ios the only way to get push notifications when the app is in the background is to use PushKit

dadagov125 avatar Feb 19 '24 09:02 dadagov125

@dadagov125 How to test voip notification? Do you have any idea?

mihir-concetto avatar Feb 22 '24 05:02 mihir-concetto

@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.

umairmehar avatar Mar 11 '24 13:03 umairmehar