gpt4 book ai didi

iOS APNS 设备 ID 与 Passbook 设备 ID 不匹配

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:06:58 31 4
gpt4 key购买 nike

我有一个 (PhoneGap) 应用程序,它将成功获得 Passbook 通行证,并且还将成功接收与 Passbook 分开的推送通知(当伪造设备 ID 时)。

我遇到的问题是发送给注册设备的设备 ID 存折与 APNS 设备 ID 不匹配。更糟糕的是,我这辈子都无法让设备获得不同的 ID(即使在多个 APNS 证书和卸载、提前设置日期技术之后)

  • 启动应用
  • APNS 是/否?是的!
  • 收到要求 APNS 设备 ID 的电话(一如既往)
  • 继续创建存折通行证,添加通行证
  • Passbook 使用从 Apple 收到的不同于 APNS 设备 ID 的设备 ID 进行回调(注册设备)

两者都使用相同的 CSR 文件来创建 APNS 并传递类型 ID,一个事件的配置文件(启用推送和存折)。我不确定问题是什么,但一半的问题是 APNS 不会给它一个新的 ID。

我在这里做错了什么?我假设我没疯,设备 ID 应该匹配。

谢谢

最佳答案

正如其他人评论的那样,这是意料之中的。

引用Passbook Programming Guide: Updating a Pass特别是-

The device library identifier is a Passbook-specific shared secret between the user’s device and your web server. It is not related to the device identifier (UDID). The device identifies itself with a different ID to different servers and it may change its ID at any time. Its purpose is to allow efficient communication between the device and your server, not to let your server keep a list of of what passes are currently installed on a device. The device library identifier uniquely identifies a device and indicates that the entity making the request is authorized to make such a request.

还有来自Local and Push Notitifcation Programming Guide

Note: A device token is not the same thing as the device UDID returned by the identifierForVendor or uniqueIdentifier property of UIDevice or any other similar properties such as the advertisingIdentifier property of ASIdentifierManager.

Apple 竭尽全力防止促进无意 跟踪,因此不同的框架将在同一设备上为给定的应用程序返回不同的设备标识符。同一设备上的不同App也会从相同的框架中获取不同的标识符。

编辑 - Pushtoken(也在注册时提供)用于在后续推送通知中识别设备,而不是 DeviceLibraryID,但概念是相同的 - 此标识符对于上的其他标识符是唯一的相同的设备。

关于iOS APNS 设备 ID 与 Passbook 设备 ID 不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22440842/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com