简体   繁体   中英

iOS app detects unlock event while App is running in background

I am trying to create an app like an Ads every time the user unlocks the phone.

The user unlocks the phone -> open customized ads.

Is this possible to capture the phone unlock event and open your app?

Thanks!

Sorry mate... This is not possible.. iOS doesn't allow opening apps automatically ..

You have to add all the custom logics in your AppDelegate which will have your application life cycle delegate methods.

You can learn more about this on the Apple Documentation Page

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