iPhone 通知可以

发布于 2024-08-31 04:14:54 字数 264 浏览 2 评论 0原文

我读了更多关于 iPhone 通知的帖子,我有一个简单的问题......

设备在哪里接收通知(这样我就可以显示一条包含通知用户的消息通知)。 据我所知,该消息是由应用程序管理的。

问题是:

......当我的应用程序收到通知时可以启动它吗? 或者在其他世界中,应用程序在收到通知时开始运行,或者它只是简单地变为活动状态以管理消息,并在通知管理结束时应用程序返回睡眠状态? 设备上打开了主应用程序窗口?

提前非常感

谢卢库努肯 再见

I read more post regarding iPhone notification, and I have a simple question....

Where a device receive a notification (so I can display a message contains the message notificatio ti advise the user).
I understand that message is managed by the application.

The question is:

...when my application receive the notification is it possible to start it?
Or in other world the application became run when receive the notification or it simple became active only to manage the message and at the end of notification management the app return to sleep?
The main application windows is opened on the device ?

Many thanks in advance

Lukenukem
Ciao

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

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

发布评论

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

评论(2

秋风の叶未落 2024-09-07 04:14:54

通过推送通知,您可以提示用户采取行动,如果他们同意(通过点击“打开应用程序”按钮),将自动打开应用程序。

需要注意的是,未经用户同意,您不能这样做。他们必须点击打开应用程序按钮才能打开您的应用程序。如果没有用户的操作,则无法自动打开应用程序,也无法自动打开、执行所需操作并退出应用程序。

With push notifications you can prompt the user to take action, which if they agree (by tapping the "open application" button), will open the application automatically.

The caveat is that you can't do this without the users consent. They have to tap the open application button for your app to open. There's no way to open the app automatically without the user's action, nor is there any way to open, perform the required actions and quit the app automatically.

绝對不後悔。 2024-09-07 04:14:54

应用程序不会“睡眠”,它们要么运行,要么不运行(直到 4.0 操作系统),我假设您正在询问推送通知,当用户收到通知时会发生什么,他们可以选择关闭它,或者继续并“查看”可以导致应用程序自动打开的通知...这就是我所生活的当前系统中的情况...

The apps dont "sleep" they are either running or not (till 4.0 OS that is), im assuming you are asking about push notification, what happens when a user receives a notification is that they can choose to close it, or go ahead and "view" the notification which can cause the app to open automatically...thats as far is it goes in the current system i blive...

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