locked
Once sending notification how to confirm whether it was delivered successfully to the Device using Notificaion Hubs RRS feed

  • Question

  • We are trying to implement a chat concept in windows phone 8.1 so we are using Notification Hub for sending messages but once the user sends a message to the other user how can we confirm whether it was delivered successfully so that i can take necessary actions depending upon success or failure.

    Below is the response i get when notification is sent.

    Saturday, February 7, 2015 10:47 AM

Answers

  • If it’s a intermittent connection issue, it holds the message and deliver the notification as soon device become active. If it’s permanent connection issue (either deleted the app or device switched off or internet connection is off for more than X days), then it will discard the message.

    Thanks,
    Sateesh


    Mark Post as helpful if it provides any help.Otherwise,leave it as it is.

    • Marked as answer by Sharathm1 Wednesday, February 11, 2015 4:39 AM
    Tuesday, February 10, 2015 6:46 PM

All replies

  • Hi,

    Azure Notification sends notification message to PNS (APNS, MPNS, WNS) and PNS is responsible for delivering the notifications to the device.  PNS could send/drop/delay the notification based on the device status and other things.  Hence, currently there is no reliable way to know whether device received notification or not through Azure Notification Hub.

    The only way you can do this is through application logic something like this, whenever device receives the push notification, device writes some message in to the some storage (queue/table storage). Other device/backend polls (may be 1 min) the storage for whether message received or not. Then it can take necessary actions depending upon that.

    Thanks,
    Sateesh


    Mark Post as helpful if it provides any help.Otherwise,leave it as it is.

    Monday, February 9, 2015 6:11 PM
  • Hi Sateesh,

    Thanks for the reply just a small doubt, If a user doesn't have internet will the notification message kept on hold or will it be removed or will it be delivered once he has the Internet.

    Tuesday, February 10, 2015 4:48 AM
  • If it’s a intermittent connection issue, it holds the message and deliver the notification as soon device become active. If it’s permanent connection issue (either deleted the app or device switched off or internet connection is off for more than X days), then it will discard the message.

    Thanks,
    Sateesh


    Mark Post as helpful if it provides any help.Otherwise,leave it as it is.

    • Marked as answer by Sharathm1 Wednesday, February 11, 2015 4:39 AM
    Tuesday, February 10, 2015 6:46 PM