Wednesday, 12 April 2017

Azure graph notification push email ios/Mac mail

I am using the microsoft graph api as part of Azure to update (email) messages that come in before they get delivered to the client device, my app is written in nodejs. It works great, however not sooo great in mac mail/iOS mail.

(I think) The problem is that when the push subscription comes to my app that updates the message it also gets pushed to the clients. When my app is finished updating the message it has already arrived in mac mail, and so mac mail doesn't re-fetch the message. For some reason Outlook app on Android and iPhone works fine (not too surprising).

What i need to do is either prioritise the push notification to my application that updates the messages so it receives it first, or send a new push notification to iOS app.

Is this possible in either scenario? Somehow iOS mail/mac mail receive the first push notification, so can I force another, or can i delay the other push notifications from occuring until another has finished?

Any help would be great thanks.



via amlwwalker

No comments:

Post a Comment