hiennguyen92 / flutter_callkit_incoming

Flutter Callkit Incoming
https://pub.dev/packages/flutter_callkit_incoming
MIT License
182 stars 314 forks source link

Callkit not displaying on ios using fcm #440

Open cyber-pride opened 10 months ago

cyber-pride commented 10 months ago

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 ?

Jazzykhan commented 9 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

dadagov125 commented 9 months ago

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

mihir-concetto commented 9 months ago

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

umairmehar commented 8 months ago

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