Hello,
I have install plugin using CLI with app id and .NET Key.
And use following code in my html file
function init() {
document.addEventListener("deviceready", initPushwoosh, true);
//rest of the code
}
function initPushwoosh()
{
alert("om");
parsePlugin.initialize();
}
parsePlugin.initialize(appId, clientKey, function () {
alert('success'+appId+"----"+clientKey);
}, function (e) {
alert('error');
});
parsePlugin.getInstallationId(function (id) {
alert(id);
}, function (e) {
alert('error');
});
parsePlugin.getSubscriptions(function (subscriptions) {
alert(subscriptions);
}, function (e) {
alert('error');
});
parsePlugin.subscribe('SampleChannel', function () {
alert('OK');
}, function (e) {
alert('error');
});
parsePlugin.unsubscribe('SampleChannel', function (msg) {
alert('OK');
}, function (e) {
alert('error');
});
</script>
</head>
But its not going in parsePlugin.initialize function.
Please help me.
Thanks in Advance.
Hello, I have install plugin using CLI with app id and .NET Key. And use following code in my html file
function init() { document.addEventListener("deviceready", initPushwoosh, true); //rest of the code } function initPushwoosh() { alert("om"); parsePlugin.initialize(); } parsePlugin.initialize(appId, clientKey, function () { alert('success'+appId+"----"+clientKey); }, function (e) { alert('error'); });
But its not going in parsePlugin.initialize function. Please help me. Thanks in Advance.