react-native-callkeep icon indicating copy to clipboard operation
react-native-callkeep copied to clipboard

Ask the user to unlock the screen

Open vijayakm opened this issue 3 years ago • 2 comments

Hello everyone,

When the user answer the incoming call and the phone is locked, is it possible to ask the user to unlock his phone in order to open my app ? Like WhatsApp, when there is a VideoCall, the phone must be unlock to answer the call

vijayakm avatar Mar 31 '21 18:03 vijayakm

Doing so would require running in self managed mode. There is a pull request for that in the making:

https://github.com/react-native-webrtc/react-native-callkeep/pull/395

It basically requires you to provide your own incoming call ui, meaning it's not just something you just enable and call it a day.

You can read more about what's required here: https://developer.android.com/guide/topics/connectivity/telecom/selfManaged

jonastelzio avatar Apr 09 '21 12:04 jonastelzio

Don't unlock the phone. Show the app when locked

Add this to the android manifest

android:showWhenLocked="true" android:turnScreenOn="true"

example: <activity android:showWhenLocked="true" android:turnScreenOn="true" ...................

IOS i didn't find a solution yet

timorss avatar Oct 11 '21 11:10 timorss