We have a client that runs our app in `guided access mode`.
The app runs flawlessly for 2 days consecutively, but after that the iPad suddenly lags, sometimes crashes and reopens, and after that the screen goes black.
If they press the home button the screen goes active with the app still running. if they close the app, reopen it and restart `guided access mode` the same thing will happen much sooner.
A complete reboot is required, and after that the app will run flawlessly again for 2 days
We've done extensive testing on our side, but are unable to reproduce the issue. Intensive usage of the app doesn't seem to trigger the issue sooner than 2 days. However if you use the app too little or not at all and it'll keep running fine.
Does anyone know what might be happening here and how we can prevent it?
To my knowledge an app shouldn't be able to break the Kiosk mode and let the device go to standby.
Some general information:
- The app was built with React Native
- We use the Lottie library for animations and standard js timers to trigger certain events
- Turning off some of the animations seems to postpone the 'crash'
- The iPads are placed in a stand and use a nonstandard charging cable
- I've monitored the app and was unable to find a memory leak
I found an entry in the device logs that seems to happen alongside the issue, but I was unable to determine if it's a cause or a result of the issue.
Date/Time: 2018-03-18 11:51:21.622654 +0100 OS Version: iPhone OS 11.2.6 (Build 15D100) Architecture: arm64 Report Version: 19 Command: AppName Path: /private/var/containers/Bundle/Application/2CBF6CD5-361E-41B3-8BFD-B80F73360F49/AppName.app/AppName Version: 1.17 (12) Beta Identifier: FB6349BF-3B73-4519-8FE2-852CC4FFC82B Parent: launchd  PID: 187 Event: wakeups Wakeups: 45001 wakeups over the last 299 seconds (150 wakeups per second average), exceeding limit of 150 wakeups per second over 300 seconds Action taken: none Duration: 299.27s Steps: 119 Hardware model: iPad6,11 Active cpus: 2 Powerstats for: AppName  UUID: 3A4499E3-13C5-361C-B591-1429A6E9F52A Start time: 2018-03-18 11:54:52 +0100 End time: 2018-03-18 11:56:19 +0100 Microstackshots: 119 samples (100%) Primary state: 89 samples Frontmost App, User mode, Effective Thread QoS User Interactive, Requested Thread QoS User Interactive, Override Thread QoS Unspecified User Activity: 0 samples Idle, 119 samples Active Power Source: 0 samples on Battery, 119 samples on AC