cordova-plugin-pushnotification-parsepushnotification
Version:
Cordova Parse Push Notification plugin
29 lines (22 loc) • 798 B
HTML
<html>
<head>
<script type="text/javascript" src="cordova.js"></script>
</head>
<body>
<script>
var applicationId = "XiTcV0ExgO0NknDe1NEAekcK0DPLcHpPtoGpXiUT";
var clientKey = "XiTcV0ExgO0NknDe1NEAekcK0DPLcHpPtoGpXiUT";
document.addEventListener("deviceready", function(){
window.parsepushnotification.setUp(applicationId, clientKey);
//registerAsPushNotificationClient callback (called after setUp)
window.parsepushnotification.onRegisterAsPushNotificationClientSucceeded = function() {
alert('onRegisterAsPushNotificationClientSucceeded');
};
window.parsepushnotification.onRegisterAsPushNotificationClientFailed = function() {
alert('onRegisterAsPushNotificationClientFailed');
};
}, false);
</script>
Cordova ParsePushNotification
</body>
</html>