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?


1 answer

  • answered 2018-10-22 18:33 Harsh

    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