react-native-incall-manager
react-native-incall-manager copied to clipboard
App in background and green "In Call" bar on iOS
Does this library handle this? When you leave facetime and you're still in a call there's the green bar at the top of the UI that lets you know a call is happening in the background.
If not, does anyone have any ideas on how to handle that?
This library does not handle green bar. It's controlled by system.
I'm not exactly sure what I made it work, but it seems system somewhat detects if you are in-call or not to show the green bar.
Maybe depends on:
-
Use this library, and system detect your audio type is
call
, then it shows green bar while in background. -
Integrate with Call-Kit. (https://github.com/ianlin/react-native-callkit), then system knows you are using
call function
so displays green bar while in background.
I think this is possible through enabling background modes (docs) in your app's Info.plist
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
<string>fetch</string>
<string>voip</string>
</array>