parse-community / parse-server-push-adapter

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

mutable-content 1 outside the aps scope #38

Closed micheilsgrey closed 7 years ago

micheilsgrey commented 7 years ago

I am sorry for this question, i am new to parse and js, i want to make my pushes available with images for iOS 10 but looks like i do something wrong with setting params, please help:

Parse.Push.send({
        where: pushQuery, // Set our Installation query
        data: {
            alert: alertMessage,
            sound: "default",
            "content-available": 1,
            "mutable-content": 1,
            "image": "https://hsto.org/files/ff5/03e/e6b/ff503ee6b45d46ffb092aac33f2f282b.gif"
        }
    }, {
            useMasterKey: true,
            success: function () {
                response.success("Push sent to everyone with image!");
            },
            error: function (error) {
                response.error("Error sending push: " + error);
            }
        });

and i getting this on device :

{
    aps =     {
        alert = "Test text!";
        "content-available" = 1;
        sound = default;
    };
    image = "https://hsto.org/files/ff5/03e/e6b/ff503ee6b45d46ffb092aac33f2f282b.gif";
    "mutable-content" = 1;
}

is not "mutable-content" = 1; must be in scope of aps ? If it is, what i doing wrong ?