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

Define Notification Icon #122

Closed
lgArlequin opened this issue Dec 13, 2019 · 3 comments
Closed

Define Notification Icon #122

lgArlequin opened this issue Dec 13, 2019 · 3 comments
Assignees

Comments

@lgArlequin
Copy link

Hello, first of all, thanks for this great plugin!
I would like to know if there is any way to change the notification icon (the one that appears next to the name of the app).
I don't know if it's something that is handled by the system or can be defined somewhere.
Thanks!

@ryanheise
Copy link
Owner

It is the androidNotificationIcon parameter of AudioService.start. This defaults to mipmap/ic_launcher which is a file somewhere in the android res directory of your project. This is also the default icon for your app on the launcher screen, so if you change your launcher icon, it should also change the notification icon. But you can add another icon in that directory and refer to it with androidNotificationIcon if you want it to be different.

@ryanheise ryanheise self-assigned this Dec 15, 2019
@lgArlequin
Copy link
Author

Thank you! Work perfect, I had not paid attention to the option.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with audio_service.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants