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

Optional change icon on background player #115

Closed
vladimirlapikov opened this issue May 25, 2020 · 8 comments
Closed

Optional change icon on background player #115

vladimirlapikov opened this issue May 25, 2020 · 8 comments
Assignees
Labels
new feature New feature or request waiting for user test Working on it Working on it

Comments

@vladimirlapikov
Copy link

Hi , it will be helpful to add control over an icon of background player to change the default icon to my app icon for example
thnx again :)

@vladimirlapikov vladimirlapikov added the new feature New feature or request label May 25, 2020
@florent37
Copy link
Owner

It will be dificult because you have to give on Android a resource icon (like the launcher icon)

I think the simplest way to provide it is to add a manifest extra field which will refer to the notification icon (like how firebase does)

@vladimirlapikov
Copy link
Author

Thanks,I"ll check it

@florent37
Copy link
Owner

For now it's not implemented but I'll try to add this field. It will not be configurable from flutter but from the Android manifest

florent37 added a commit that referenced this issue May 25, 2020
Optional change icon on background player #115
@florent37
Copy link
Owner

just added

in your android/app/src/main/AndroidManifest.xml

add

<meta-data
            android:name="assets.audio.player.notification.icon"
            android:resource="@drawable/ic_music_custom"/>

here ic_music_custom is a drawable I added into android resources, like the launcher icon

@florent37
Copy link
Owner

I pushed it in 1.6.2

@florent37
Copy link
Owner

florent37 commented May 25, 2020

(meta data goes inside application)

     ...

     <meta-data
            android:name="assets.audio.player.notification.icon"
            android:resource="@drawable/ic_music_custom"/>
  
    </application>
</manifest>

@vladimirlapikov
Copy link
Author

thank you very very much :)))))

@florent37
Copy link
Owner

You're welcome thanks for using this lib and pushing issues :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request waiting for user test Working on it Working on it
Projects
None yet
Development

No branches or pull requests

2 participants