Skip to content

MMKV does not persist data. #1030

Description

@CD-Z

First of all I already saw #1011 but it couldn't help me.

Recently I tried upgrading a bare app with epxo modules to expo 55 and rn 83 from 54 and 81. However after getting the app running again mmkv doesn't persist the data. I was now debugging this problem for three days but still have no clue on solving this.

I also tried creating a smaller example app, but no matter what i did it was always working.

I tried:

  • Removing custom plugins
  • Removing the appIdSuffix
  • Upgrading to the latest mmkv version
  • removing the scr folder
  • copying the android folder in a new app
  • build the project on a different pc
  • build it on an emulator
  • build it on an actual phone
  • ...

But still the new app was always working and the original wasn't.
I don't know if I have hit some edgecase or just do something wrong, but I am out of ideas and hope someone here can help me.

Also what I noticed is that mmkv doesn't create a new folder or read the existing one. Other packages like op-sqlite continue working normally, even though they write in the same folder.

Here is the PR to upgrade the app: CD-Z/lnreader#28

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