2

I've been following this guide to try out notifications, https://medium.com/@nitishk72/flutter-local-notification-1e43a353877b, and the main API documentation for the flutter local notification package but I keep getting various errors, on a modern phone it vibrates only and no notification pops up, on an older device (emulator), i get this error android.app.RemoteServiceException: Bad notification posted from package com.xxx: Couldn't create icon: StatusBarIcon(icon=Icon(typ=RESOURCE pkg=com.xxx id=0x7f040000) visible user=0 ) can anyone help?

I wasn't able to test on an iOS device

Jimmy Bower
  • 301
  • 4
  • 12
  • Possible duplicate of [How to fix this bug : "android.app.RemoteServiceException: Bad notification posted from package"](https://stackoverflow.com/questions/24968556/how-to-fix-this-bug-android-app-remoteserviceexception-bad-notification-post) – mirkancal May 06 '19 at 16:44

1 Answers1

1

I was able to solve using a notification service as alternative. I really recommend OneSignal. It is a Notifications Service that works on multiple platforms and recently they added Flutter support to OneSignal.

There is SDK Documentation pages for Flutter: