Compliance with Android 8
Closed this issue · 2 comments
If I run this version on an Android 8 the listener receives the data but no notification is shown, even after disabling all the battery optimizations for the app.
As you could find here ( https://developer.android.com/guide/topics/ui/notifiers/notifications.html )
"If you target Android 8.0 (API level 26) and post a notification without specifying a valid notifications channel, the notification fails to post and the system logs an error".
I changed something in the PushReceiver, to make it fit Android 8.
PushReceiver.java.zip
Clearly this version works just on Android 8 since we have not Notification Channels in previous versions, so a management mechanism has to be add in order to be compliant even to older versions.
Hi @NDallaRiva,
Thanks so much for your help with this.
We will be modifying PushReceiver.java and adding notification channels to resolve this issue, and will let you know once that's ready.
Hi @NDallaRiva,
The newest version of the Pushy SDK for Cordova apps now supports Android O notification channels.
Thanks for your help! 👍