Is it OK to refresh Expiration Date every time to send notification ?

眉间皱痕 提交于 2019-12-12 06:58:01

问题


Since a registration's expiration time is 90 Days.

So I plan to check first for every concern devices/registration before sending any notification. Because I don't want to keep anything on server.

However, I'm not sure if it's good idea to do Is it slow to do for lots devices ?

Also, I can not find a way to set Expiration time of any registration So I've never seen result when sending to expired device ?

Can anyone suggest ?


回答1:


the common recommended approach is to refresh registration on every app start-up per documented at https://azure.microsoft.com/en-us/documentation/articles/notification-hubs-registration-management/. This ensures that Notification Hubs holds the most recent token provided by the device PNS.



来源:https://stackoverflow.com/questions/35402097/is-it-ok-to-refresh-expiration-date-every-time-to-send-notification

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!