react-native-incall-manager icon indicating copy to clipboard operation
react-native-incall-manager copied to clipboard

App in background and green "In Call" bar on iOS

Open bighitbiker3 opened this issue 7 years ago • 2 comments

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?

bighitbiker3 avatar Dec 19 '17 19:12 bighitbiker3

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:

  1. Use this library, and system detect your audio type is call, then it shows green bar while in background.

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

zxcpoiu avatar Dec 20 '17 05:12 zxcpoiu

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>

ruddell avatar Dec 20 '17 16:12 ruddell