Adds the ability to customize which smallIcon to display in the notification. This is specially important if the app doesn't use a transparent ic_launcher image or wants to use a different icon for the player/notification.
The service will fallback to the app's ic_launcher if the metadata is not set in the AndroidManifest.xml.
Instructions added to the README.md. 👇
Android small icon
If you see a white box in place of the small notification icon it's probably because your app icon doesn't have a transparent background.
You can specify which icon the audiofileplayer plugin should use by including the following metadata in your AndroidManifest.xml.
Adds the ability to customize which
smallIcon
to display in the notification. This is specially important if the app doesn't use a transparentic_launcher
image or wants to use a different icon for the player/notification.The service will fallback to the app's
ic_launcher
if the metadata is not set in theAndroidManifest.xml
.Instructions added to the
README.md
. 👇Android small icon
If you see a white box in place of the small notification icon it's probably because your app icon doesn't have a transparent background. You can specify which icon the
audiofileplayer
plugin should use by including the following metadata in yourAndroidManifest.xml
.Don't forget to include the icons to your
res/drawable-{density}
directories. Example:_(The filename
notification_icon.png
was just used as an example, you can use any other file as desired.)_