Jimmy Bower
Jimmy Bower

Reputation: 311

Flutter notifications not working on android devices

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

Upvotes: 2

Views: 1333

Answers (1)

Andres Ruiz
Andres Ruiz

Reputation: 11

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:

Upvotes: 1

Related Questions