Azure表示我的推送通知已全部发送到FCM,但FCM尚未收到其中一些通知

时间:2017-09-18 14:56:18

标签: android azure firebase-cloud-messaging azure-notificationhub

有时会收不到通知,但Azure会根据“SendTemplateNotificationAsync”返回“已排队”。我将所有内容记录在数据库中。我已经检查了Google Play控制台中的FCM注册令牌,并且没有用户未收到通知的记录(并且记录了收到的通知),但Azure表示他们是'入队”。我检查了Azure Portal中的指标图表,统计数据根本不匹配。 Azure认为它们是成功的通知,但它们不是。

编辑Peter Pan:

  1. 发送通知并检查Azure的结果:

    var result = hubClient.SendTemplateNotificationAsync(properties, tags).Result;

    // result is always 'Enqueued', but user doesn't always get the notification

    AddOutcomeToDatabase(result)

  2. 检查FCM是否收到它:

  3. Google Play游戏机 - > app - >开发工具 - > FCM诊断并输入用户的注册令牌。我看到他收到通知的日期在那里,但他没有的日期不存在。

    1. 检查Azure门户网站的统计信息:
    2. Azure门户 - >通知中心 - > hub - >度量标准并勾选GCM错误并选择日期范围。 GCM错误= 0。

0 个答案:

没有答案