简体   繁体   中英

How to open an application from background ios

Is it possible to open the background app into foreground in iOS ?.

I have a scenario like, If suppose my application in background then after sometime I need to up the application into foreground programmatically. Is it possible ?

I don't need to upload the application in Appstore.

Yes, it is possible.

You can wake your app up by different kinds of criteria using Push Notifications or Local Notifications. Remotely by using Push Notifications. Locally by calendar alerts, location-based triggers or task alerts.

The users can configure and complete turn of Notifications for your app, in which case it is not possible.

See introduction from Apple here. https://developer.apple.com/notifications/

As far as i know iOS does not provide a way to open your app. You can continue long running tasks while in the background opportunistically fetch content remind users to re-open your app if need be and prompt the first two with silent push notifications if need be.

您无法在ios设备中在没有用户操作的情况下启动应用程序,因为它受到Apple的限制,现在您可以使用backgroundfetch在后台打开应用程序以进行某些网络通话或所需的操作,但仅限于不到一分钟的时间最多持续30秒,在此期间您的网络请求应已完成并且所有长时间任务都已计划,即使在后台感染期间,您也可以通过在MAIN线程上发布通知来更新UI。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM