Skip to content

How do I set the ringtone to the one in the receiver's phone? #507

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

Open
tirth0 opened this issue Apr 7, 2025 · 5 comments
Open

How do I set the ringtone to the one in the receiver's phone? #507

tirth0 opened this issue Apr 7, 2025 · 5 comments
Labels
android Affects the Android platform. question Further information is requested triaging Investigating but no backlog ticket has been filed.

Comments

@tirth0
Copy link

tirth0 commented Apr 7, 2025

By default this module plays a different ringtone, I was wondering how to set the ringtone to the device ringtone.
Maybe I'm overlooking some documentation, but I wasn't able to find too much about it.

Any help is appreciated.
Thanks

@kpchoy
Copy link
Collaborator

kpchoy commented Apr 7, 2025

@tirth0
Copy link
Author

tirth0 commented Apr 7, 2025

Not particularly sure if I understand this, isn't this for the ringback tone that I'm supposed to hear if I make an outgoing call?
I was talking about the scenario where

  1. I am receiving a call in the app in my phone
  2. I want the app in my phone to play the default ringtone (the one set in my mobile) when I receive the call via twilio voice

@kpchoy
Copy link
Collaborator

kpchoy commented Apr 8, 2025

Currently the rn sdk does not have an api to support your use case. Setting the default ringtone will have to be done natively.

Please let me know is your use case Android or iOS?

@tirth0
Copy link
Author

tirth0 commented Apr 8, 2025

I'm developing for both, but thanks for the help

@afalls-twilio
Copy link
Collaborator

afalls-twilio commented Apr 8, 2025

For android, to change the ringtone of the incoming call, just replace the sound file android/app/src/main/res/raw/incoming.wav with whatever sound you would like. For more information on how it works or other sounds that are also overridable, look here.

@mhuynh5757 mhuynh5757 added question Further information is requested triaging Investigating but no backlog ticket has been filed. android Affects the Android platform. labels Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Affects the Android platform. question Further information is requested triaging Investigating but no backlog ticket has been filed.
Projects
None yet
Development

No branches or pull requests

4 participants