-
Notifications
You must be signed in to change notification settings - Fork 172
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
Question: How to add ringtone to incoming call screen #32
Comments
I used below package And added below code. @OverRide Call stop ringtone method in call accept button & call end button and also dispose method. |
where do I add this code in which file or tell me where u added this and did it work for u? |
Yes, it worked for me. I have added this in incoming call screen (pickup screen) where accept reject button appear. Example : User A make the call to User B. Then User B gets the incoming call with accept/reject buttons. When ever User B gets incoming call, i am calling start method of ringtone. When he clicks accept or reject button, i am stopping the ringtone by calling stop method. My Scenario : I am using this sample project, so that in PickupScreen initstate method, i am calling FlutterRingtonePlayer.playRingtone(); PickupScreen class will execute whenever current user gets incoming call. So it works. Note : this ringtone code is required only when the app is in foreground or running state. For background or closed or killed state, this is not required as must use callkeep package or callkit package. |
Hiii can you please give me a hint code I dont get you Im confused
…On Wed, Nov 18, 2020, 22:33 MaheshPeri19 ***@***.***> wrote:
Yes, it worked for me. I have added this in incoming call screen (pickup
screen) where accept reject button appear.
Example : User A make the call to User B. Then User B gets the incoming
call with accept/reject buttons. When ever User B gets incoming call, i am
calling start method of ringtone. When he clicks accept or reject button, i
am stopping the ringtone by calling stop method.
My Scenario :
I am using this sample project, so that in PickupScreen initstate method,
i am calling FlutterRingtonePlayer.playRingtone();
Then when user accept or reject, i am calling FlutterRingtonePlayer.stop();
PickupScreen class will execute whenever current user gets incoming call.
So it works.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APLFFLUXJJLA7WV37P5QSODSQP46ZANCNFSM4QPK7JTQ>
.
|
Can u please elaborate a little more
…On Wed, Nov 18, 2020, 22:33 MaheshPeri19 ***@***.***> wrote:
Yes, it worked for me. I have added this in incoming call screen (pickup
screen) where accept reject button appear.
Example : User A make the call to User B. Then User B gets the incoming
call with accept/reject buttons. When ever User B gets incoming call, i am
calling start method of ringtone. When he clicks accept or reject button, i
am stopping the ringtone by calling stop method.
My Scenario :
I am using this sample project, so that in PickupScreen initstate method,
i am calling FlutterRingtonePlayer.playRingtone();
Then when user accept or reject, i am calling FlutterRingtonePlayer.stop();
PickupScreen class will execute whenever current user gets incoming call.
So it works.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APLFFLUXJJLA7WV37P5QSODSQP46ZANCNFSM4QPK7JTQ>
.
|
The same code which exists in sample. I have added ringtone start and stop methods. If this sample project (Ronak99
|
@MaheshPeri19 Did you implement the calling screen when the app is closed or fone is locked? I badly need to implement this. Please help or share some code if you have implement it. |
No. If you are looking for custom incoming call like whatsapp and skype for Android only, then look into below link https://github.com/rafaelsetragni/awesome_notifications/issues/35#issuecomment-751431492 |
@MaheshPeri19 Can you share your project if it's possible? |
Sorry. I can't share. |
hello, the app is working only video call, the incoming call screen is showed when a video call is receive but there is not sound, how to add a ring tone to incoming call screen?
The text was updated successfully, but these errors were encountered: