【问题标题】:What are the iOS Device Handle Requirements for Azure SendDirectNotificationAsync?Azure SendDirectNotificationAsync 的 iOS 设备句柄要求是什么?
【发布时间】:2020-03-11 16:59:03
【问题描述】:

我正在尝试使用 SendDirectNotificationAsync 向未注册的 iOS 设备发送通知,这些设备在每次初始化时获取并更新其 66 个字符的设备句柄,以确保它是最新的。但是,来自集线器的推送结果报告“设备句柄无效。它为空或空或具有无效值。”我知道在方法中输入了一个句柄,所以只有无效才是错误。句柄的一个例子是:

<70ff27b5b101103fe462613da74c2f073c99479760db3e1c848b239e3a6b7553>

根据研究,我读到“”应该被排除在外,长度应该是64个字符。我已经尝试了两种变体,结果相同。还需要什么才能使句柄有效?

【问题讨论】:

    标签: apple-push-notifications device handle


    【解决方案1】:

    我发现基于通知参数类的每个平台都存在 SendDirectNotificationAsync 过载,例如WindowsNotification、AppleNotification 或 FcmNotification。

    对于 APNS,设备句柄中没有空格或末尾没有 。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-04-06
      • 2010-12-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-05-19
      相关资源
      最近更新 更多