locked
Windows Push Notification Device Identity

    Question

  • Hi, 

    I try to enable the push notification on my win8 app, and have a basic question. The workflow shows, basically the app request a channel, and send the channel URI to a service, and later the service will send notification to the channel URI. My question is that, what is a common practice we use to identify the channel is a new one from a first time running app, or a refresh one, given that a user can have multiple devices, thus we can's associate a channel URI to a user?

    Thanks!


    Tuesday, April 02, 2013 10:15 PM

Answers

  • I recommend checking out the App Specific Hardware ID guidance - http://msdn.microsoft.com/en-us/library/windows/apps/jj553431.aspx .

    XNA/DirectX MVP | Website | Blog | @mikebmcl

    • Proposed as answer by Jesse Jiang Friday, April 05, 2013 1:57 AM
    • Marked as answer by Jesse Jiang Monday, April 08, 2013 1:53 AM
    Friday, April 05, 2013 1:27 AM
  • The two concepts are different. Push Notifications do not specify how you authenticate users; you need to decide on a way to authenticate users of your service. Once a user is authenticated, you should then send that user's identification to your server at the same time as you send the channel URI to your server. You can then store those together or otherwise link them (e.g. through a database). That way you can make sure you update all of the user's devices whenever you need to send that user an push notification.

    If you are looking for a way to authenticate users, you should consider using Live Connect: http://msdn.microsoft.com/en-us/library/live/hh826544.aspx .


    XNA/DirectX MVP | Website | Blog | @mikebmcl

    • Marked as answer by Jesse Jiang Monday, April 08, 2013 1:53 AM
    Wednesday, April 03, 2013 9:50 PM

All replies

  • The two concepts are different. Push Notifications do not specify how you authenticate users; you need to decide on a way to authenticate users of your service. Once a user is authenticated, you should then send that user's identification to your server at the same time as you send the channel URI to your server. You can then store those together or otherwise link them (e.g. through a database). That way you can make sure you update all of the user's devices whenever you need to send that user an push notification.

    If you are looking for a way to authenticate users, you should consider using Live Connect: http://msdn.microsoft.com/en-us/library/live/hh826544.aspx .


    XNA/DirectX MVP | Website | Blog | @mikebmcl

    • Marked as answer by Jesse Jiang Monday, April 08, 2013 1:53 AM
    Wednesday, April 03, 2013 9:50 PM
  • Thanks for the reply. Now my question is mainly for a user that has multiple device, when a channel gets updated, how can the server know this channel is associate which device? What is the common practice that people use to identify the per user per device association? 

    Thanks!

    Thursday, April 04, 2013 6:59 PM
  • I recommend checking out the App Specific Hardware ID guidance - http://msdn.microsoft.com/en-us/library/windows/apps/jj553431.aspx .

    XNA/DirectX MVP | Website | Blog | @mikebmcl

    • Proposed as answer by Jesse Jiang Friday, April 05, 2013 1:57 AM
    • Marked as answer by Jesse Jiang Monday, April 08, 2013 1:53 AM
    Friday, April 05, 2013 1:27 AM