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

Question: can I call `setup` method more than once?

Open redexp opened this issue 1 year ago • 2 comments

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.

redexp avatar May 04 '23 12:05 redexp

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

wilmxre avatar May 07 '23 00:05 wilmxre

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.

redexp avatar May 11 '23 09:05 redexp