parse-community / parse-server-push-adapter

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

Support content outside of aps namespace #96

Closed toddgower-hiatus closed 6 years ago

toddgower-hiatus commented 6 years ago

I run parse server 2.6.3 with push adapter 2.0.0.

Just upgraded from Parse Server 2.2.12 to 2.6.3 and now push-adapter doesn't seem to support the json format that I used before. Before the update, I sent my pushes with the following json:

{
    "aps":
    {
        "alert":
         {
            "title":"💸 Push notification title",
            "body":"content of my push notification."
         },
        "badge":1
    },
    "notificationId":"vS4tASH6nq"
}

Now, those notification are not received and I can only send content within the aps namespace:

{
    "alert":
    {
        "title":"💸 Push notification title",
        "body":"content of my push notification."
    },
    "badge":1
}

Is there a possibility to send content outside the aps namespace? I was using this to support my own push notification tracking.

toddgower-hiatus commented 6 years ago

I see this is addressed in PR #95