如何解决Ionic Cordova InAppBrowser
我有一个使用以下内容构建的混合应用程序: 离子 5.4.16 科尔多瓦 10.0.0 AngularCLI 9.0.2 Android SDK 29
我使用 Cordova In App Browser https://ionicframework.com/docs/native/in-app-browser 打开一个 URL。 这个 URL 是一个聊天页面,在这个 URL 中我需要访问前后摄像头和麦克风,但是当我打开它时,该页面没有访问权限。 它似乎没有使用我的 config.xml 中声明的权限,而它在其生命周期中使用这些权限的应用程序。 在我的“Android 平台”部分,我声明:
<config-file mode="merge" parent="/*" target="AndroidManifest.xml" xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
</config-file>
private iab: InAppBrowser
....
const ref = this.iab.create(url,'_blank','location=no,zoom=no');
我还需要声明任何其他许可吗? 你有什么建议吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。