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

I want to redirect into my application when user accept call. not to native calling screen #3

Closed
saurabh874 opened this issue Oct 28, 2020 · 3 comments

Comments

@saurabh874
Copy link

saurabh874 commented Oct 28, 2020

is there anyway to redirect into own application's screen when user accept call. not to native calling screen? and native screen should not display after accept call?

@MrHertal
Copy link
Owner

Hi,

If I understand correctly, you want to stay on your application when accepting a call and not going on native UI.
On iOS this is already the case. But on Android native UI is displayed over your app when accepting a call.

This is due to the call to CallKeep setCurrentCallActive. This is called here when call is connected.

first option: create a local copy of RNTwilioPhone and remove this line. Your app will be in foreground and native UI in background. But the problem is that you won't be able to use hold/mute/digits functionalities on native UI.

second option: try to call CallKeep backToForeground after call has connected.

@saurabh874
Copy link
Author

saurabh874 commented Oct 28, 2020

@MrHertal then which function i have to call for iOS. because this is i am facing in iOS only when app is in background or kill mode. it always open native UI when accept a call. even i do not want to show native UI in all are modes.

@MrHertal
Copy link
Owner

I don't think that is possible on iOS because from what I understand, incoming VoIP push must be reported asap to CallKit, even if app is not awake.

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

No branches or pull requests

2 participants