hiennguyen92 / flutter_callkit_incoming

Flutter Callkit Incoming
https://pub.dev/packages/flutter_callkit_incoming
MIT License
170 stars 285 forks source link

custom ringtone not working #207

Closed faisalmushtaq007 closed 1 year ago

faisalmushtaq007 commented 1 year ago

i added a custom ringtone file to raw folder in android section. after setting the 'ringtonePath': '/android/app/src/main/res/raw/azan.mp3', its using default phone ringtone Can u please tell me if i am doing anything wrong

hiennguyen92 commented 1 year ago

only using name example: {... ringtonePath: 'azan.mp3' }

eduardothiesen commented 2 months ago

I am facing the same issue.

ringtone files set in raw folder, ringtone path set as just the name

AndroidParams( isCustomNotification: false, isShowLogo: false, ringtonePath: 'ringtone_1.mp3', backgroundColor: ColorManager.gcfBlue.hexString, incomingCallNotificationChannelName: 'Incoming Call', missedCallNotificationChannelName: 'Missed Call', isShowCallID: false, isShowFullLockedScreen: true, ),

Screenshot 2024-08-05 at 16 31 35

Please advise

eduardothiesen commented 2 months ago

I am facing the same issue.

ringtone files set in raw folder, ringtone path set as just the name

AndroidParams( isCustomNotification: false, isShowLogo: false, ringtonePath: 'ringtone_1.mp3', backgroundColor: ColorManager.gcfBlue.hexString, incomingCallNotificationChannelName: 'Incoming Call', missedCallNotificationChannelName: 'Missed Call', isShowCallID: false, isShowFullLockedScreen: true, ),

Screenshot 2024-08-05 at 16 31 35

Please advise

For anyone experiencing the same problem: the ringtonePath should be set without the extension. For example: "ringtone_1", instead of "ringtone_1.mp3"

Steveit96 commented 1 month ago

@hiennguyen92 The custom ringtone is not working on the ipad and redmi phone as well. ( So far it's not working on this devices), Is there any way to fix it ? Thanks in advance.