ConnectyCube / connectycube-flutter-call-kit

A Flutter plugin for displaying call screen when the app in the background or terminated.
https://developers.connectycube.com/flutter
Apache License 2.0
55 stars 75 forks source link

iOS not working #124

Closed kostricanitechnology closed 5 months ago

kostricanitechnology commented 7 months ago

Hello,

This Plugin looks great but I am having an issue with iOS, it works well for Android but when I try to iOS I don't receive anything on call in the background, or my phone is locked. I added to info.plist this code

UIBackgroundModes
<array>
    <string>audio</string>
    <string>fetch</string>
    <string>processing</string>
    <string>remote-notification</string>
    <string>voip</string>
</array>

I am using Agora for calls with Firebase as the backend. Not sure if you have any specific instructions for the iOS because I didn't find any.

Thanks

TatankaConCube commented 7 months ago

the sender should send VoIP push notifications to iOS, not common APNS

kostricanitechnology commented 7 months ago

Thank you for your fast response. Do you have any instructions for how it can be done?

TatankaConCube commented 7 months ago

also pay attention, if the device had received the VoIP push notification but haven't displayed the CallKit (due to some cases such as crash or something else) about 5 times, the system will ignore the next VoIP notifications, and you need to delete and reinstall your app to make the VoIP notification worked again

TatankaConCube commented 7 months ago

any instructions for how it can be done?

it depends on the platform you use for sending the push notifications. for the Connectycube you just need to add the parameter 'ios_voip': 1 to the payload.

kostricanitechnology commented 7 months ago

sorry, I'm not sure what exactly you mean by which platform. I am using Firebase (FCM Push notifications) and Agora for calls. Do you have any instructions on how can I configure it? Because seems a bit complicated.

Thanks

TatankaConCube commented 7 months ago

then you need to read for documentation on how to send iOS VoIP over FCM. sorry, I'm not very experienced with the FCM for iOS and I need research here similar to you. try to research by yourself first

TatankaConCube commented 7 months ago

do you use Agora API for sending the FCM push notifications? if so, you can ask them (or search in the documentation) how to send iOS VoIP push notifications

kostricanitechnology commented 7 months ago

No, we are not using the Agora API for the FCM Notifications. I will check what I can do and will reply if will find any solution.

Thanks for your support

TatankaConCube commented 5 months ago

no activity for a long time. closing...