如何解决Ionic 3 文件访问存储 android 11 问题 Play 商店拒绝申请
我在 IONIC 3 中开发了一个应用程序,我正在访问文件管理器来存储文件和读取文件。对于 android 11,我添加了 “MANAGE_EXTERNAL_STORAGE”
Play 商店拒绝了我的应用程序,因为为了访问文件管理器并在内部存储中创建 sqlite 数据库,我需要 MANAGE_EXTERNAL_STORAGE。
import { sqliteObject,sqlite } from '@ionic-native/sqlite'; 从'@ionic/storage'导入{存储};
this.sqlite.create({
name: 'test.db',location: 'default'
}).then((db: sqliteObject) => {
this.dbsql = db;
this.CreateTables();
}).catch(e => this.appmanager.ConsoleLog("DataB new",e));
this.file.createDir(this.file.externalRootDirectory,AppConstants.IMG_FOLDER,false).then((entry) => {}).catch((err) => {
})
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。