是否可以在没有本地应用程序的情况下使用推送通知
我需要一个云服务(C# .NET)向订阅用户的移动设备(最初适用于 iOS 设备,后来适用于 Android 和 WP7)发送短信(例如日历提醒)。
有没有办法在设备上没有本地应用程序的情况下执行此操作?
找到关于移动设备上的通知方法的这篇有趣的文章,并且Apples APN 文档,但看来您需要一个本地应用程序。
但是,对于 APN,即使应用程序未运行,操作系统也会为您显示消息 - 所以我认为这是可能的(尽管我确实注意到注册 APN,您需要应用程序的证书)。
也许还有其他技术?
谢谢 蒂姆
I'd have a requirement, for a cloud service (C# .NET) to send a text message (eg a calendar reminder) to a subscribed user, on their mobile device (initially for iOS devices, then Android and WP7 later).
Is there a way of doing this without a local app on their device?
Found this interesting article regarding notifications methods on mobile devices, and Apples APN docs, but it appears you need a local app.
However, with APN's, it appears that the OS displays the message for you even when the app is not running - so I thought it might be possible (although I did note to register for APN's you need a cert for your app).
Maybe there is some other technique?
Thanks
Tim
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
即使有可能,这也可能是苹果的内部功能,因为他们不希望任何人能够向他们的客户发送垃圾邮件。
在这种情况下,本地应用程序充当 API 密钥。 Apple 知道谁在向用户的设备发送推送通知,因为它们是通过使用您的证书签名的应用程序发送的。因此,如果您滥用推送通知功能,他们可能会惩罚您。
当您使用 APN 时,首先您需要获取设备的令牌,当用户同意接收来自您的应用程序的推送通知时,该令牌会发送到您的服务器。然后使用该令牌,您可以向该用户发送推送通知。如果没有本地应用程序,您将无法获取此令牌,因此您将无法向任何用户发送推送消息。
TL;DR 这是不可能的
Even if it is possible, it is probably Apple's internal functionality, as they wouldn't want anybody to be able to spam their customers.
Local app in this case acts as an API key. Apple knows who is sending push notifications to user's devices, because they are sent through your app signed with your certificate. So they can potentially punish you, if you abuse push notification functionality.
When you work with APN, first you need to obtain device's token, which is sent to your servers when user agrees to receive push notifications from your app. Then using that token you can send this user a push notification. Without local app you have no way of obtaining this token, so you won't be able to send any user a push message.
TL;DR It is not possible
可能与您的用例场景无关...可以通过安装设备设置管理注册配置文件而不是应用程序来向 iOS 设备发送 Apple 推送通知。
这就是 Apple 的移动设备管理器 (MDM) 系统的工作原理。
Probably not relevant to your use case scenario... it is possible to send an Apple Push Notification to an iOS device by installing a device settings management Enrollment configuration profile instead of an app.
This is how Apple's Mobile Device Manager (MDM) system works.