react-native-webrtc / react-native-callkit

#deprecated iOS 10 new CallKit framework for React Native
ISC License
122 stars 67 forks source link

CallKit UI not showing when i use displayIncomingCall #21

Open fcaride opened 6 years ago

fcaride commented 6 years ago

First of all i do the setup calling this function: RNCallKit.setup({appName: 'App'}); Then I am calling this function: RNCallKit.displayIncomingCall("_uuid", "886900000000") when the phone is locked or when I'm on the home screen and the UI it's not showing up. I debugged it and it calls the function but it doesn't do anything.

Thanks

davidcantonnoteges commented 6 years ago

I have the same issue, please, some fix ?

aarkalyk commented 6 years ago

have you added

<key>UIBackgroundModes</key>
<array>
  <string>voip</string>
</array>

to your info.plist file?

davidcantonnoteges commented 6 years ago

Yes

davidcantonnoteges commented 6 years ago
UIBackgroundModes
<array>
    <string>voip</string>
    <string>fetch</string>
    <string>remote-notification</string>
</array>
geraintwhite commented 6 years ago

I've found that the CallKit display does not appear with no errors in the logs if your call ID is not in the UUID format. If (like me) your call IDs from the SIP stack are the wrong format I suggest using uuid-by-string to convert the ID into the correct format.

neo125874 commented 5 years ago

@davidcantonnoteges Did you solve the issue now? Could you share the method?

neo125874 commented 5 years ago

@aarkalyk Same here in ios12 Not showing when called display & Already add the backgroundmode,

Any solution? Thanks

andrew781026 commented 5 years ago

When I setup without CocoaPods , it work well , but when i change to using CocoaPods to setup , I have the same issue , How can i fix it ?

anhtukhtn commented 5 years ago

I've found that the CallKit display does not appear with no errors in the logs if your call ID is not in the UUID format. If (like me) your call IDs from the SIP stack are the wrong format I suggest using uuid-by-string to convert the ID into the correct format.

UUID format solved my problem.