将 iphone uuid 映射到电话号码

发布于 2024-12-25 05:11:40 字数 217 浏览 6 评论 0原文

我正在开发一个 mdm 服务器来与苹果推送通知服务交互。当我在 iPhone 上安装配置文件时,设备会将 UUID 并将魔术字符串推送到服务器。我的目标是在大量 iPhone 上安装配置文件。在服务器端我不知道UDID电话号码映射,我所拥有的只是电话号码。如何将 UUID 映射到电话号码。

当我发送推送通知时,我必须使用 UUID,为了在合格的设备上发送正确的推送命令,我需要 UUID 与电话号码映射

I am developing an mdm server to interact with apple push notification service. When I install a configuration profile on an iPhone, the device pushes the UUID and push magic string to the server. My goal is to install configuration porofiles on large number of iPhones. On the server side I don't know the UDID phone number mapping, All I have is phone number. How to I map the UUID to the phone number.

When I send a push notification I have to use UUID, to send correct push command on qualified devices, I need the UUID vs phone number mapping

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

空心↖ 2025-01-01 05:11:40

设备在您的 MDM 系统中注册后,您将知道该设备的 UDID(唯一设备标识符)。然后,您可以向设备发送 DeviceInformation 命令并获取电话号码(如果实际上该设备有电话号码)。您将将该电话号码保存在数据库中与设备最初在 MDM 中注册时获得的 UDID 关联的记录中。

从此时起,每当您向设备发送命令时,该命令都会有一个 UUID。确保您的系统记住您要向其发送此命令的设备的 UDID。当设备响应时,该响应将包含此 UUID,并且使用此 UDID,您可以查找响应设备的 UDID(以及电话号码)。

注意:如果您尝试使用电话号码作为已注册设备的唯一标识符,请不要这样做。请改用 UDID。

After a device registers with your MDM system you will know that device's UDID (unique device identifier). You can then send a DeviceInformation command to the device and get the phone number (if, in fact, the device has a phone number). You will save that phone number in the database in a record associated with the UDID you got when the device initially enrolled in your MDM.

From this point on, whenever you send a command to the device that command will have a UUID. Make sure your system remembers the UDID of the device that you are sending this command to. When the device responds that response will contain this UUID and using this UDID you can then look up the UDID (and hence the phone number) of the device that responded.

Note: If you are trying to use the phone number as a unique identifier for an enrolled device, don't. Use the UDID instead.

辞取 2025-01-01 05:11:40

您不必使用 DeviceUUID 来推送通知,您需要 Apple 生成的两个 deviceToken(沙箱或分发)之一。

从 Apple 获取 deviceToken 后,

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)devToken

您必须在服务器上注册您的设备并发送电话号码。
我没有看到其他选择。

You don't have to use the DeviceUUID for push notifications, you neet one of the two deviceTokens (sandbox or distribution) generated by Apple.

After getting the deviceToken from Apple in the

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)devToken

you have to register your device at your server and also send the phoneNumber.
I don't see an other option.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文