【问题标题】:Is it possible to send notifications to Notification Center in Mountain Lion even when the app is not running, like in iOS?即使应用程序没有运行,是否可以向 Mountain Lion 的通知中心发送通知,例如在 iOS 中?
【发布时间】:2012-07-21 05:01:39
【问题描述】:

在 iOS 中,您可以在远程服务器中注册 APNS ID;即使接收通知的应用程序未运行,服务器也会使用该 ID 和适当的证书向设备发送推送通知。

OSX Mountain Lion 有类似的机制吗?我可以获得指向任何代码/示例的指针吗?

请注意,我对通知中心的本地通知不感兴趣,这在网络上进行了广泛讨论。

谢谢!

【问题讨论】:

    标签: macos notifications center osx-mountain-lion


    【解决方案1】:

    是的,Mountain Lion 的机制是一样的。

    这是一个很好的起点:

    https://developer.apple.com/appstore/push-notifications/index.html

    【讨论】:

    • 谢谢史蒂夫,有趣的是,如果你用谷歌搜索或 bing 这个问题,什么都不会显示。一定是因为这个话题很新。
    猜你喜欢
    • 2012-07-31
    • 1970-01-01
    • 2012-07-27
    • 1970-01-01
    • 2017-04-07
    • 2020-06-15
    • 2021-07-25
    • 2012-08-25
    • 1970-01-01
    相关资源
    最近更新 更多