taivo / parse-push-plugin

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

Android 9 support #136

Open fmendoza opened 5 years ago

fmendoza commented 5 years ago

Any advice on how to get this working on Android 9? The main issue is that the deviceToken is saved as undefined in database.

NicksonYap commented 5 years ago

Yes, this is also the case for me, took a lot to realize deviceToken is missing in _Installation and push will plainly be ignored by parse-server

NicksonYap commented 5 years ago

related to: https://github.com/taivo/parse-push-plugin/issues/137

NareshMedipally commented 5 years ago

I have encountered the same issue. Not sure if it is an ideal fix. Was able to fix by adding another plugin “phonegap-plugin-push” to get the device token and then updated the installation class with rest api.

https://github.com/phonegap/phonegap-plugin-push https://docs.parseplatform.org/rest/guide/#installations-api

However you need to comment records generated by Phonegap-push plugin in AndroidManifest.xml else you would see the two notifications on the device when you receive a push.