From my windows mobile application, I want to implement the windows notifications.
My mobile application is based on :
- Cordova (version 4.0.0)
- Ionic Framework (version 1.0.1)
- Cordova Windows (version 4.1.0)
- Deploy on Windows Phone 8.1
To implement this feature, I'm using the cordova plugin "phonegap-push-plugin" (version 1.4.5).
When my mobile application is launched for the first time, I ask to my application to connect to the notification client platform. The goal is this notification client platform ask to WNS to return a new notification channel (URI form) to my application.
When I use the method "registration" from PushNotification class :
var push = PushNotification.init({
"windows": {}
});
push.on('registration', function(data) {
console.log("registration event");
document.getElementById("regId").innerHTML = data.registrationId;
console.log(JSON.stringify(data));
});
I get this error :
The notification client platform is unable to connect to the cloud notification service
I thought the notification client platform is currently under maintenance. I found a file where are IP address ranges used by WNS. But when I ping differents IP address ranges and it works.
Is there anyone who already face this problem ? Or is there anyone who have an idea about how to fix it ?