问题
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