-
Notifications
You must be signed in to change notification settings - Fork 152
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
Added unregistration for android #195
Added unregistration for android #195
Conversation
Thank you for your PR(s)! We will test and review them ASAP. |
android/src/main/java/com/hoxfon/react/RNTwilioVoice/TwilioVoiceModule.java
Outdated
Show resolved
Hide resolved
android/src/main/java/com/hoxfon/react/RNTwilioVoice/TwilioVoiceModule.java
Outdated
Show resolved
Hide resolved
android/src/main/java/com/hoxfon/react/RNTwilioVoice/TwilioVoiceModule.java
Outdated
Show resolved
Hide resolved
android/src/main/java/com/hoxfon/react/RNTwilioVoice/TwilioVoiceModule.java
Outdated
Show resolved
Hide resolved
unregisterForCallInvites(); | ||
WritableMap params = Arguments.createMap(); | ||
params.putBoolean("initialized", false); | ||
promise.resolve(params); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't you want to resolve the promise once onComplete
is triggered in unregisterForCallInvites
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jesse, you can fix this part, if you think it would be correct (or more accurate), as you know the library in more depth than I am.
…ceModule.java Co-authored-by: Jesse Degger <[email protected]>
…ceModule.java Co-authored-by: Jesse Degger <[email protected]>
…ceModule.java Co-authored-by: Jesse Degger <[email protected]>
…ceModule.java Co-authored-by: Jesse Degger <[email protected]>
HI @fabriziomoscon! Could you please specify what do you mean? |
Changes included to #205 PR against sdk-5 |
This PR is addressed to add new feature of unregistration on android device. This feature was tested in our app - now it works correct.
#172 - initial issue, and the same problem occured in our project.