A
A
Andrey Gubsky2014-01-10 23:24:04
iOS
Andrey Gubsky, 2014-01-10 23:24:04

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);
}
});

Perhaps someone has come across something similar.
I will be grateful for your help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
anatale, 2014-01-30
@Ernado

Does device.registration exactly contain what is required? Log in and see what is issued there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question