Azure Notification Hub registrations disappear when sending a notification

前端 未结 3 786
轮回少年
轮回少年 2020-12-31 12:32

Recently our Azure Notification Hub became a very mysterious entity. When Apple devices register we can see them in Service Bus Explorer and as soon as we try sending any no

3条回答
  •  长情又很酷
    2020-12-31 13:34

    Notification hub cleans up registrations with invalid tokens during the send flow. Looks like for some reasons APNS rejects your tokens and NH just removes registrations. Make sure:

    1. you are getting token from physical device (not emulator);
    2. APNS certificate uploaded to NH is not expired;
    3. APNS certificate uploaded to NH corresponds APNS endpoint you are using in application (sandbox or production).

提交回复
热议问题