Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS: destroyProvider method has added #587

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

yunusaydinonline
Copy link
Contributor

Hi,

This PR contains destroying provider manually in order to be able to call setup() method again to activate ringtoneSound changes.
When user picks the new ringtone over UI, the app shouldn't be killed and reopen. In fact, it should change the ringtone sound immediately. So, I added this small helper in order to achieve this functionality.

@sboily sboily added ios need review Need to review ticket labels Nov 21, 2022
@@ -896,7 +905,7 @@ - (void)configureAudioSession
AVAudioSession* audioSession = [AVAudioSession sharedInstance];
[audioSession setCategory:AVAudioSessionCategoryPlayAndRecord withOptions:AVAudioSessionCategoryOptionAllowBluetooth error:nil];

[audioSession setMode:AVAudioSessionModeDefault error:nil];
[audioSession setMode:AVAudioSessionModeVoiceChat error:nil];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why changing this ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ios need review Need to review ticket
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants