Skip to content

Commit 217a348

Browse files
authored
Fix RC db flags (#8897)
* Fix RC db flags * Add changelog
1 parent e74765a commit 217a348

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

FirebaseRemoteConfig/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Unreleased
2+
- [fixed] Fixed cached config not loading if device is locked. (#8807)
3+
14
# v8.0.0
25
- [fixed] Fixed throttling issue when fetch fails due to no network. (#6628)
36
- [fixed] Fixed issue where sometimes the local config returned is empty. (#7424)

FirebaseRemoteConfig/Sources/RCNConfigDBManager.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ - (void)createOrOpenDatabase {
214214
if (!RemoteConfigCreateFilePathIfNotExist(dbPath)) {
215215
return;
216216
}
217-
int flags = SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE | SQLITE_OPEN_FILEPROTECTION_COMPLETE |
217+
int flags = SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE |
218+
SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION |
218219
SQLITE_OPEN_FULLMUTEX;
219220
if (sqlite3_open_v2(databasePath, &strongSelf->_database, flags, NULL) == SQLITE_OK) {
220221
// Always try to create table if not exists for backward compatibility.

0 commit comments

Comments
 (0)