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

setKeepScreenOn() does not keep screen on for iOS 13.1

Open spiside opened this issue 6 years ago • 2 comments

setKeepScreenOn() does not keep screen on for iOS 13.1

First off, just wanted to say thank you for the awesome library!

I was testing with iOS 13.1 today to see if I could keep the iPhone screen from turning off when I enable speakerphone. Unfortunately, I tried setting the flag to enable=true, (InCallManager.setKeepScreenOn(true)) when I start with {media: 'audio'}, the screen turns off when a user gets close to the proximity sensor.

I noticed that the only method in the obj-c setKeepScreenOn is to enable or disable the idleTimerDisable. Would it be better to turn off the proximity sensor instead?

spiside avatar Nov 11 '19 23:11 spiside

@spiside which version of react-native-incall-manager are you using?

kayzenkayzen avatar Nov 18 '19 05:11 kayzenkayzen

3.2.6 (the latest version to date)

spiside avatar Nov 18 '19 15:11 spiside