Open AKempente opened 1 year ago
Hi, so there is currently no option to change the notification icon on Android but I guess that could be added as an option in the plugin configuration, I'll look into that.
In the meantime: the relevant part of the code that needs to be changed is this line in MediaSessionService.java. If you change this to some other icon (that has been added as a resource to the Android project) then that icon will be used for the media notification on Android.
@jofr you're a star. the suggested method, changing the icon in MediaSessionService.java has done the job for me.
Thank you
How did you go about this @AKempente ? That file is in node_modules
which I don't check into git. 🤔
@kaaloo sorry for the delay in responding, I changed MediaSessionService.java file line (107) in Android Studio:
I hope that helps.
here is the change .setSmallIcon(R.drawable.customicon_24)
I love this plugin, after migrating from cordova to capacitor, i confirm this is the best external player for Android and web. I can't comment on iOS as i haven't tried it yet.
One question or maybe feature request would be on how to add custom logo icon instead of the default speaker icon displayed on Android.
Please let me know a suggested way to implement it if possible. I couldn't find any info on the documentation or examples.
Cheerios ;)