Test the script by opening the following URL: http://localhost:8080/admin.php/ Don't forget to modify the configuration at the bottom of the file. This script is ...
AppState will change between one of 'active', 'background', or (iOS) 'inactive' when the app is closed or put into the background.