简体   繁体   English

有什么方法可以使用离子电容器/cordova 跨平台以编程方式启用引导访问?

[英]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?任何地方都有本机 Ionic 功能吗?

I believe Capacitor is backwards compatible with Cordova so you could use a Cordova plugin.我相信电容器与 Cordova 向后兼容,因此您可以使用 Cordova 插件。 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.我还没有测试过这个插件,但这个插件似乎适用于 iOS: https://github.com/wizpanda/cordova-ios-guided-access不过,正如它所说,你必须注册一些程序。

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.如果您需要其他平台,那么您可以使用核心平台语言(Android 的 Koltin/Java,Windows 等的 C#/C++ 等)公开这些本机功能/API,并分叉/扩展此插件。 That way, at least the iOS version is already done (given this works).这样,至少 iOS 版本已经完成(鉴于此工作)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将 Ionic Native / Cordova Plugins 与 Ionic (React) & Capacitor 一起使用的正确方法是什么? - What is the right way to use Ionic Native / Cordova Plugins with Ionic (React) & Capacitor? 离子 5 反应电容器 / Cordova cordova-plugin-uid - Ionic 5 React Capacitor / Cordova cordova-plugin-uid 使用没有离子的电容器社区/admob - Using capacitor-community/admob without ionic 跨平台开发使用.Net Core Web API作为后端服务,Angular和Ionic or React(ReactJS,React Native)和ElectronJS? - Cross-platform development using .Net Core Web API as the backend service, Angular and Ionic or React (ReactJS, React Native) and ElectronJS? 用离子和反应(和电容器)创建一个单体仓库 - Create a monorepo with ionic and react (and capacitor) 在 Ionic + React + Capacitor 环境中运行 InAppBrowser - run InAppBrowser in an Ionic + React + Capacitor environment 在离子电容器反应中隐藏启动画面 - Hide Splash Screen in Ionic Capacitor React 如何使用带有离子电容器的 webpack 构建? - How to use webpack build with ionic capacitor? 在 Ionic React 中收听 iOS 电容器通知 - Listen to iOS Capacitor notifications in Ionic React Firebase 身份验证如何与离子和电容器一起使用? - How does firebase authentication work with ionic and capacitor?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM