taivo / parse-push-plugin

Push notification plugin for Cordova/Phonegap/ionic on Parse platform
118 stars 102 forks source link

As of Android 26 a Notification channel is required for push notifications to work correctly #128

Closed iugo-robert closed 5 years ago

iugo-robert commented 5 years ago

After targeting Android sdk version 26 I was getting this error message: NotificationService: No Channel found for

According to this documentation: https://developer.android.com/training/notify-user/channels

Starting in Android 8.0 (API level 26), all notifications must be assigned to a channel.

I've added code to create the default channel.

Inspiration came from this stack overflow post: https://stackoverflow.com/questions/46990995/on-android-8-1-api-27-notification-does-not-display

taivo commented 5 years ago

Thanks for your contribution @iugo-robert . Sorry I went mia for a while there.