asp.net web api2 - Registration Azure Notification Hub in WebApi backend from Android client -
we using asp.net webapi 2.2 owin middleware authentication. try integrate azure notification hub our platform. however, not find best way registrating our android client azure notification hub through our webapi backend.
should call registration method after token endpoint returns access token?,
what should registration id notification hub returns?,
instead of generating registration id, couldn't use userid our authenticated push notifications?,
and finally, there tutorial tells explicitly how can authenticated push notifications webapi android, because official tutorials not enough
- after gcm registrationid/token/handle, need register @ azure notification hub , azure notification hub registrationid different gcm registrationid.
- your app needs store anh registrationid update registration on each app start, backend doesn't need id.
- you can add user id tag registration identify registrations using user id, see following linked tutorial.
- this official tutorial need: azure notification hubs notify users - android, webapi.
Comments
Post a Comment