parse-community / parse-server-push-adapter

A push notification adapter for Parse Server
https://parseplatform.org
MIT License
87 stars 99 forks source link

Classify installation with pushType and failback with deviceType #31

Closed jeffjen closed 7 years ago

jeffjen commented 7 years ago

I wrote an adapter that basically extend the ParsePushAdapter, keeping the overall logic, and added custom Firebase Cloud Messaging driver. From what I read from the documents it should be pushType, not deviceType, that will determine which sender should be adpted.

flovilmart commented 7 years ago

GIVen the android code, the push type should be "gcm": https://github.com/ParsePlatform/Parse-SDK-Android/blob/036b0cbb4ed826bc67a26e07fefef1b9f447a679/Parse/src/main/java/com/parse/PushType.java#L14

jeffjen commented 7 years ago

Without breaking a lot of people, made the classification fail back if pushType is not explicitly configured from senderType

flovilmart commented 7 years ago

We'lll need the pushType based classification even more as fcm is gonna replace GCMand we need to let both live together :)