简体   繁体   中英

Bringing an app from background to foreground automatically when an UILocalNotification fires?

As I understand in iOS, when an UILocalNotification fires, an alert window would pop up and ask the user to open that app.

I want to show that app to the user directly when an UILocalNotification fires, no user intervention is required.

Is it possible to bring that app from background to foreground automatically when an UILocalNotification fires?

Thank you.

目前无法在库存的iOS设备上使用允许的公共API来实现。

The main logic Apple's restrictions is to protect both the user and the device(its memory, battery etc..) from harmful applications. And the logic of iOS notifications is that they let the operating system user intervention. As @hotpaw2 has said, there is no way to do that in public API's, which means if you do that your app will be rejected..

NOTE* : * If you target jailbreak devices it is possible, i can help a little too if you want that

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