识别网络上的 iPhone 操作系统并发送推送通知
您可以轻松地将网络上的设备识别为 iPhone OS 设备吗?您是否可以在没有目标应用程序的情况下向网络上识别为使用 iPhone 操作系统的设备发送推送通知?
是否可以识别网络上的哪些设备正在使用 iPhone 操作系统?
有了这些信息,是否可以向这些设备发送推送通知?
据我了解,您的应用程序服务器将联系APN,APN将联系用户。那么,上面的情况就不可能实现了。有人可以帮我确认一下吗?
Can you identify devices on your network as an iPhone OS device easily? Can you send push notifications to devices identified as using the iPhone OS on your network without a a target app?
Is is possible to identify which devices on a network are using the iPhone OS?
With this information, is it possible to send push notifications to these devices?
From my understanding, your application server will contact APNs, which will contact the users. So, the above would be impossible. Can someone confirm this for me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您查看 Apple 的 UIDevice 类文档:
http://developer.apple.com/ iphone/library/documentation/uikit/reference/UIDevice_Class/Reference/UIDevice.html
例如,[[UIDevice currentDevice] model] 将为您提供@“iPhone”和@“iPod touch”等字符串。
然后,在您的应用程序委托方法“application:didRegisterForRemoteNotificationsWithDeviceToken:”中,您可以将设备模型和设备令牌存储在您的服务器上。
您将能够使用它向给定模型发送推送通知。如果您使用 UrbanAirship,您可以使用“标签”选项。
If you look at the Apple's documentation for the UIDevice class :
http://developer.apple.com/iphone/library/documentation/uikit/reference/UIDevice_Class/Reference/UIDevice.html
For example, [[UIDevice currentDevice] model] wil give you strings like @”iPhone” and @”iPod touch”.
Then in your App Delegate method "application:didRegisterForRemoteNotificationsWithDeviceToken:", you can store the device model with the device token on your server.
You will be able to send push notification to a given model with that. If you use UrbanAirship, you could use the "tag" option.
据我所知,iPhone 不会以特殊方式在网络中宣布其存在。通过查看响应主机的 MAC 地址,您也许可以猜测本地网络上的 iPhone 设备。
不会,推送通知是通过 iPhone 和 APN 服务器之间的加密连接传递的,并且始终针对设备上的特定应用程序。您无法向网络上的任意设备发送推送通知(至少在不破解设备的情况下)。
As far as I know, iPhones don't announce their presence in a special way within the network. You might be able to guess what devices are iPhones on your local network by looking at the MAC address of responding hosts.
No, push notifications are delivered over an encrypted connection between iPhone and APN servers and always target a specific application on a device. You're not able to send a push notification to arbitrary devices on your network (at least not without hacking the devices).