Open swiven opened 10 years ago
hello swiven , I am getting empty uri. any suggestions??
Thanks, Lomas joshi
To:joshilomas Sorry for reply late..
function onDeviceReady() {
appini();
//alert(device.platform);
try {
var pushNotification = window.plugins.pushNotification;
pushNotification.register(successHandler, errorHandler, { "channelName": "ppp", "ecb": "onNotification" });
}
catch (err) { }
}
function successHandler(result) {
//console.log('registered###' + result.uri);
// send uri to your notification server
result.uri ====> here can give uri
}
function errorHandler(result) {
// send uri to your notification server
//alert('error');
}
you must include script src="Scripts/PushNotification.js"></script
Hi.
To test the App on the device, I deploy the application connecting the phone to PC using USB. event.uri returns empty. I notice I never indicate the CN and Identity so there is not relationship betwen my App and SID and Cliente Secret. But I don't know where I have to set this parameters in the App, config.xml or anywhere.
Could you tell me how to solved this?
Thanks
I already received the result.uri by using pushNotification.register. Then I send message in ASP.NET
It's no problem !!!! PushPlugin is very greate !!!!!!! Thanks.