When sending test notifications from azure push notifications it remove all device registrations

时间:2017-08-05 12:15:00

标签: azure xamarin.forms azure-mobile-services azure-notificationhub

I have register device token with tag when user login in to the application. After that when i send test notification from azure push notifications hub registered device ids is removed automatically. I am surprised of this type behavior. I have searched a lot, All are say that cause of setting wrong provision profiles setup or wrong certificate uploaded in to the azure notification hub but I have checked multiple times in my application. Certificates and provisioning profiles are in fine. Please suggest any idea of cause of this behavior.

1 个答案:

答案 0 :(得分:0)

以下是有关通知中心的正式文档设备注册

  

重要的是要注意注册是暂时的。与它们包含的PNS句柄类似,注册过期。 您可以在通知中心设置注册的生存时间,最长可达90天。此限制意味着必须定期刷新,并且它们不应该是重要信息的唯一存储。这种自动过期还可以简化卸载移动应用程序时的清理工作。

有关详细信息,请参阅Registration Management

此外,正如Push notifications with Azure Notification Hubs: Frequently asked questions所述:

  

通知中心会在收到有关过期或无效注册的PNS反馈时对其进行清理。