kaknazaveshtakipishi / PermissionEverywhere

Library for requesting a permission from Service using Notification
Apache License 2.0
97 stars 25 forks source link

Notification Channel is null in Oreo #13

Open mirsamantajbakhsh opened 5 years ago

mirsamantajbakhsh commented 5 years ago

Hello, I've found your library very useful, but when I've tested it in a Oreo emulator, I got the following error displayed in a toast: Developer warning for package "" Failed to post notification on channel "null" See log for more details

And found some logs like this in logcat: system_process E/NotificationService: No Channel found for pkg=...

I've searched a little and found that there is an error in Oreo for notifying the user: https://stackoverflow.com/questions/45711925/failed-to-post-notification-on-channel-null-target-api-is-26

https://stackoverflow.com/questions/45668079/notificationchannel-issue-in-android-o

I've searched your code and I think that there should be a little change in NotificationHelper class.

Thanks in advanced

mirsamantajbakhsh commented 5 years ago

Sorry. I've seen #12 but I think the library from jitpack.io needs to be updated. Am I right? or there is an update available?