Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Incorrect init option "vibration" in a few ios samples on PAYLOAD.md #713

Closed
jcesarmobile opened this issue Mar 16, 2016 · 1 comment
Closed

Comments

@jcesarmobile
Copy link
Collaborator

https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/PAYLOAD.md

There are two iOS init samples where a vibration option is used. But that option doesn't exists or is not documented:

var push = PushNotification.init({
    "ios": {
        "sound": "true",
        "vibration": "true",
        "badge": "true",
        "clearBadge": "true"
    }
});

var push = PushNotification.init({
    "ios": {
        "sound": true,
        "vibration": true,
        "badge": true,
        "categories": {
            "invite": {
                "yes": {
                    "callback": "app.accept", "title": "Accept", "foreground": true, "destructive": false
                },
                "no": {
                    "callback": "app.reject", "title": "Reject", "foreground": true, "destructive": false
                },
                "maybe": {
                    "callback": "app.maybe", "title": "Maybe", "foreground": true, "destructive": false
                }
            },
            "delete": {
                "yes": {
                    "callback": "app.doDelete", "title": "Delete", "foreground": true, "destructive": true
                },
                "no": {
                    "callback": "app.cancel", "title": "Cancel", "foreground": true, "destructive": false
                }
            }
        }
    }
});
@lock
Copy link

lock bot commented Jun 5, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants