localnotificationsplugin icon indicating copy to clipboard operation
localnotificationsplugin copied to clipboard

Not working from API 26 (Android 8.0) and higher APIs (27 and 28)

Open raul9410 opened this issue 6 years ago • 2 comments

Bug

Plugin Version:
Platform API 26 (Android Oreo 8.0) API 27 (Android Oreo 8.1) and 28 (Android Pie 9.0) Device/Hardware:

Expected behavior

Receiving a popup notification

Actual behavior

When SendButton is Clicked a toast message appears with the message: "Developer warning for package "LocalNotificationsSample.Droid" Failed to post notification on channel "null" See log for more details"

Steps to reproduce the behavior

Set the API level to 26 or higher and run the project

Feature Request

When you target Android 8.0 (API level 26) or higher, you must implement one or more notification channels to display notifications to your users. Check this for more details: https://stackoverflow.com/questions/45711925/failed-to-post-notification-on-channel-null-target-api-is-26

raul9410 avatar Dec 12 '18 11:12 raul9410

Support for 26+ with notification channels was added in version 3.0.1 of the plugin. See: 12d5de0ed09f9b0c9abc097fdca35f3ea31066e6

Which version of the plugin are you using? (you left it out of the bug report)

edsnider avatar Dec 12 '18 15:12 edsnider

I can confirm it works just fine on all 3 API levels mentioned.

AntvissMedia avatar Apr 01 '19 15:04 AntvissMedia