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

Notification ringtone sound not working #77

Closed
MrunalrajRedij opened this issue Dec 1, 2022 · 9 comments
Closed

Notification ringtone sound not working #77

MrunalrajRedij opened this issue Dec 1, 2022 · 9 comments

Comments

@MrunalrajRedij
Copy link

Platform:
Android

Describe the bug:
The notifications sound is not working for p2p calls.

Additional info:
I am getting incoming call notifications, but the ringtone is not working on both call notifications and full-screen notifications (when the device is in sleep mode).

Tested on:
Emulator: From android 9 to 12
Physical devices: From android 9 to 12

@TatankaConCube
Copy link
Contributor

Could you review the log of your app and search the log with the tag NotificationsManager? There will be printed lines with the selected ringtone. Check if it is present by the displayed path.

@MrunalrajRedij
Copy link
Author

MrunalrajRedij commented Dec 1, 2022

This are the notification logs when notification appears:

2022-12-01 15:58:57.308 5624-5624/com.mobile.spiconn.dev D/NotificationsManager: customRingtone custom_ringtone
2022-12-01 15:58:57.308 5624-5624/com.mobile.spiconn.dev D/NotificationsManager: ringtone 1 android.resource://com.mobile.spiconn.dev/raw/custom_ringtone
2022-12-01 15:58:57.308 5624-5624/com.mobile.spiconn.dev D/NotificationsManager: ringtone 2 android.resource://com.mobile.spiconn.dev/raw/custom_ringtone

@TatankaConCube
Copy link
Contributor

do you have the resource with the name custom_ringtone in the res directory of your Android project by path app_name/android/app/src/main/res/raw/custom_ringtone.mp3?

@MrunalrajRedij
Copy link
Author

No, I dont have the mp3 file on specified path. I thought package is taking default ringtone of device. Also, I remember at first the ringtone was working fine and I haven't place any mp3 file in res.

@TatankaConCube
Copy link
Contributor

then delete the parameter ringtone from the initialization method or set null or empty string there

@TatankaConCube
Copy link
Contributor

Additionally, you can delete and install the app again to delete the Notification channel with the previous config. It is the Android feature when you can't modify the Notification channel (after creating a new channel with the old id the old channel will be restored with old configs, I have an idea how to fix it in this plugin but don't have enough time to realize it).

@MrunalrajRedij
Copy link
Author

Okay, It seems to be working. And thanks for the additional comment, It made it easy for me to test. Otherwise, I may have spent a lot of time trying without uninstalling the app.
Before you close this issue, I want to test it on different devices to ensure it works on all versions. Please wait for then. I will comment on this issue as soon as the tests are done. Thanks

@TatankaConCube
Copy link
Contributor

Close the ticket by yourself if the issue was resolved.

@MrunalrajRedij
Copy link
Author

I tested this on different devices, and it's working correctly. Will close the issue now. Thanks.

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