Replies: 2 comments
-
Why would you create a read-only MMKV instance? It provides little functionality. |
Beta Was this translation helpful? Give feedback.
0 replies
-
A read-only MMKV instance is needed if you would like to display data from the main app in the keyboard extension. For example, the user has logged in and created some todo items in the main app. The keyboard extension may want to display that the user is logged in or is required to log in and list those todo items. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The language of MMKV
Objective-C & Swift
The version of MMKV
1.2.14
The platform of MMKV
iOS
The installation of MMKV
Cocoapods
What's the issue?
I am building an iOS Keyboard Extension. The keyboard does not require OpenAccess, meaning the app extension does not have write capabilities. Initialization of MMKV is failing because it opens the file with read & write. Is it possible to configure a read-only mode?
I've "fixed" this by changing
MemoryFile.cpp:94
fromto
and
MemoryFile.cpp:188
fromto
Beta Was this translation helpful? Give feedback.
All reactions