Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于 Data Protection 开启时候读取 db 的问题 #32

Open
ZengyiMa opened this issue Feb 23, 2018 · 0 comments
Open

关于 Data Protection 开启时候读取 db 的问题 #32

ZengyiMa opened this issue Feb 23, 2018 · 0 comments

Comments

@ZengyiMa
Copy link

ZengyiMa commented Feb 23, 2018

我们的 App 中开启了 Data Protection,在机器有设置密码,并且锁屏状态下点击消息推送唤醒 App 时会出现读取 db 为空的问题,原因是 Data Protection 模式下唤醒读取 db 会出现访问被拒绝,参考链接,我们暂时的临时方案是在初始化时设置 flag

databaseInfo.databaseQueue = [FMDatabaseQueue databaseQueueWithPath:[self pathForDbName:dbName] flags:SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_FILEPROTECTION_NONE];

希望能提供控制相关属性设置项或者配置项

谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant