react-native-callkeep
react-native-callkeep copied to clipboard
Question: can I call `setup` method more than once?
I want to change android option selfManaged
while app running. I want to give to user two options - simple system call window or app rich call window.
if you didn't add the setup in native ios then i think you can make the user choose from the two modes and then call the setup. just be careful to have the right permissions and to not call the setup multiple times because it will initialize your events more than one time and that will cause you some problems
I can make PR with method
reloadPhoneAccount(selfManaged: boolean)
basically it's just call telecomManager.unregisterPhoneAccount(account);
and call this.registerPhoneAccount(context);
again
Why do I need this? Because of some android OS implementations which works more stable with "not self managed" option (better for waking up from deep sleep). The user does not know in advance how it will be. The user can only try and toggle the option if it doesn't work well for him.