I have supervised iPads managed through an MDM. We have a custom entreprise App which request Guided Access (Single App Mode).
UIAccessibilityRequestGuidedAccessSession(true or false, ^(BOOL didSucceed) { ... });
It works when app opens up and locks in that app.
During some interactions with the app, the app will request to disable guided access to open up another app. That works as well.
When the other app re-open the first custom app, it requests single app mode once again but this one fails with the folowing error message:
App: (org.company.applicationName) asked to self-lock into gax. desired style: 2 effective style: 0 result: 0 error: 4 availability:Guided Access Ready
Has anyone encountered this ? What does that mean ?
(I would also mention that i only get that error in release and not debug)
Application is React-Native app...
Thank you!