- Create an application
- Goto Data Browser
- Create a new class, select installation
- Add a new column call it Id
- Create a certificate and provisioning profile for push
- Upaload the certificate to the parse application
- Install the PushPlugin
- Follow guilde for "Automatic Installation"
- Init PushPlugin with
var pushNotification;
document.addEventListener("deviceready", function(){
pushNotification = window.plugins.pushNotification;
...
});
- Send your device push token by following the register instructions. When you AJAX the token to Parse also send
<MyApp>Id
- Follow the parse guide for sending notifications
curl -X POST
-H "X-Parse-Application-Id: ${APPLICATION_ID}"
-H "X-Parse-REST-API-Key: ${REST_API_KEY}"
-H "Content-Type: application/json"
-d '{
"where": {
"injuryReports": true
},
"data": {
"alert": "Willie Hayes injured by own pop fly."
}
}'
https://api.parse.com/1/push