Answer the question
In order to leave comments, you need to log in
Why don't push notifications come to the iOS app from the Windows Azure backend?
Hello colleagues!
Now I'm working on a project for which mobile clients are being developed.
Windows Azure services are used as a backend for push notifications.
An iOS developer encountered this problem:
" C azure script sends notifications for iOS
Nothing is written to the log for either success or error. The certificate is loaded in the settings (debug). Notifications do not come to the device, but if on the same device .registration and certificate send from a third-party application directly to the Apple server, then everything works. "
Script:
var text = request.query.message; // текст сообщения
var push = request.service.push;
push.apns.send(device.registration, {
alert: text
}, {
success: function(pushResponse) {
console.log("Sent iOS push:", pushResponse);
}, error: function(error) {
console.log("Sent iOS push error:", error);
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question