-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Exception "Bad notification" running sample #313
Comments
@LeonSweden did you find a solution to this? even im facing the same issue. Please help! |
I'm facing the same issue. any help! |
I was able to get it working by using the below code while registering for a foreground service:
I hope this helps you. |
NotificationManager.Importance none is obsolete and will be removed, use NotificationImportance.None instead |
Combining the two posts above, this is my replacement (its half baked, and half implemented in my app, hence the namespace changes etc), but my app does not crash at startup anymore.
Updating the sample to a working version would be nice |
After adding to manifest required but missing permission:
I get this error when pressing START SERVICE:
Android.Util.AndroidRuntimeException: 'Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification(channel=null pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x42 color=0x00000000 actions=2 vis=PRIVATE)'
I suggest that you do rewrite this sample to current Android version.
The text was updated successfully, but these errors were encountered: