Search code examples
ioslifecycle

When an app is relaunched


I use voice recognition in my app. Is there a way to notify the user on a relaunch after an initial start that voice recognition is on or can I turn it off on a relaunch? Is there a way to test for a relaunch?


Solution

  • There are various methods to track the application lifecycle. You are probably interested in applicationWillEnterForeground:

    See here for reference.