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

Show custom UI after answer call on android and how can I call from phone history? #21

Closed
bmp123 opened this issue Feb 18, 2019 · 10 comments
Labels
question Further information is requested

Comments

@bmp123
Copy link

bmp123 commented Feb 18, 2019

Hello. Can I show custom ui after answer call like in ios if app in background or killed?

@bmp123 bmp123 changed the title Show custom UI after answer call on android Show custom UI after answer call on android and how can I call from phone history? Feb 18, 2019
@manuquentin
Copy link
Contributor

manuquentin commented Feb 18, 2019

Hello,
If the app is killed on ios, you can use PushKit (see this library) to wake up the phone.
On Android we can woken up via a certain type of notification: data message, cf: https://rnfirebase.io/docs/v5.x.x/messaging/receiving-messages#4)-(Optional)(Android-only)-Listen-for-FCM-messages-in-the-background.

When the app is in background for a long time, you can use push notification to display callkeep, see this library for push.

You you want to call from the native Phone app, or the phone history, you have to listen to the didReceiveStartCallAction event, retrieve the phone number and call it via you voip service.

@geraintwhite
Copy link
Contributor

AFAIK, unless you go down the self-managed ConnectionService route (which requires you to implement your own incoming call UI), there is no way to show a custom UI after answering on Android.

You may be able to launch the app from the answerCall listener using something like https://www.npmjs.com/package/react-native-launch-application.

@bmp123
Copy link
Author

bmp123 commented Feb 25, 2019

@manuquentin thank you for your answer. But I don't know how can I add a field with my app name to native android contacts (like a call through whatsapp) and how can I handle this in my app.

@tarbary
Copy link

tarbary commented Mar 26, 2019

I have same issue, I need make call from the native address book via myapp.

@manuquentin
Copy link
Contributor

Hi @tarbary
On the Contact native app of you phone, if the user has authorized to add the Phone Account for you application will see this :
Screenshot_20190617-114206_Phone

When the user select your application, the didReceiveStartCallAction callback will be called with the number selected.

@danjenkins
Copy link
Collaborator

Didnt mean to close it

@manuquentin
Copy link
Contributor

Hi @bmp123, what is the status of this issue ?
Can you check the example folder to see if your codebase match it.

@bmp123
Copy link
Author

bmp123 commented Oct 2, 2019

@manuquentin Hi, sorry for the delay. I will check in the near future

@manuquentin
Copy link
Contributor

Ping @bmp123 did you manage to fix your issue with the example ?

@manuquentin manuquentin added the question Further information is requested label Mar 10, 2020
@manuquentin
Copy link
Contributor

Closed due to inactivity.
Please reopen the issue with some logs if you still reproduce it.

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

No branches or pull requests

5 participants