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
Options empty, resulting in no drawable icon? #13
Comments
BTW, notification icon could be easily generated here: |
Thank you very much for your help and the link. I will try it out asap. Btw, the link is kinda bugged and leads to /issues/url |
Thanx, link fixed 🙂 |
honestly this is maybe the oldest part in my codebase and i am not an expert on android neither. what was the resolution? How can we improve docs ? |
I was stuck on the issue, that android always crashed on loading a playlist, because there was not small icon set:
AndroidRuntime: java.lang.RuntimeException: Unable to start service org.dwbn.plugins.playlist.service.MediaService@e78b87b with Intent { act=com.devbrackets.android.playlistcore.start_service cmp=**.**.**/org.dwbn.plugins.playlist.service.MediaService (has extras) }: java.lang.IllegalArgumentException: Invalid notification (no valid small icon): Notification(channel=PlaylistCoreMediaNotificationChannel shortcut=null contentView=null vibrate=null sound=null defaults=0x0 flags=0x10 color=0x00000000 category=transport actions=3 vis=PUBLIC)
I dont know much about the icon system in android / capacitor / cordova, but it came down to these lines:
(MediaImageProvider.ts:52 and following)
When I log options at this point, its always an empty object, even though I set the options before like this as documented:
Has anybody got this to work on android and can share their code?
Best regards
The text was updated successfully, but these errors were encountered: