Skip to content

Android Multiprocess Support? #445

@TheSteveHan

Description

@TheSteveHan

Hi there,

I've encounter some segfaults today from accessing the storage via both the app and the widget on android.

After a little bit of digging it seems like the mmkv instance for android is hard coded to use single process mode here:

https://github.com/mrousavy/react-native-mmkv/blob/master/android/src/main/cpp/MmkvHostObject.cpp#L19

Is this intentional? For my use case, after changing this flag to MMKV_MULTI_PROCESS the app no longer crashes, although I haven't read enough of the code base to understand the full implication of this change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions