收到远程通知时自动启动 iPhone 应用程序

发布于 2024-09-12 02:19:35 字数 66 浏览 2 评论 0原文

是否可以在收到远程通知时自动启动iPhone应用程序,无论它是关闭还是在后台?我将不胜感激你的帮助。 提前致谢, 莎拉

Is it possible to launch iPhone application automatically when it receives remote notification whether it is closed or in the background? I would appreciate your help.
Thanks in advance,
Sarah

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

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

发布评论

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

评论(2

痴者 2024-09-19 02:19:36

简短回答:收到新通知时,您无法自动启动应用程序。

当推送通知发送到 iPhone 时,用户会看到一个看起来像新短信的视图。
然后,用户可以选择打开您的应用程序或关闭此视图。

Short answer : You can't automatically launch your app when a new notification is received.

When an push notification is sent to an iPhone, the user is presented a view that is looking like an new SMS.
The user has then the option to open your application or dismiss this view.

菊凝晚露 2024-09-19 02:19:36

您应该检查一下:

http:// developer.apple.com/iphone/library/documentation/UserExperience/Conceptual/MobileHIG/HandleTasks/HandleTasks.html

并阅读“启用本地和推送通知”下面的内容,在这里您将找到问题的答案。

然后阅读以下内容:

如何实现它。

快乐编码!

// 雅各布

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