'Any way to Programmatically enable guided access using ionic capacitor/cordova cross platform?

I am using capacitor, ionic and react and was wondering how this would be done? Are there any plugins that I can use? Is there native Ionic functionality anywhere?



Solution 1:[1]

I believe Capacitor is backwards compatible with Cordova so you could use a Cordova plugin. I haven't tested the plugin but this one seems to do it for iOS: https://github.com/wizpanda/cordova-ios-guided-access You have to be enrolled in some program though, as it states.

If you need other platforms, then you could expose those native capabilities/APIs with the core platform language (Koltin/Java for Android, C#/C++ for Windows, etc..) and fork/extend this plugin. That way, at least the iOS version is already done (given this works).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 David