我正在使用React Native应用程序(仅限Android,不支持iOS),它使用Redux和redux-persist来存储大量数据 . 看起来像redux-persist后端唯一受到良好支持的选择是AsyncStorage . https://github.com/rt2zz/redux-persist#storage-engines

该应用程序启动前台服务,需要读取React Native应用程序持久保存的某些状态 . Foreground Service在Java和Kotlin中实现,并在用户退出应用程序后继续运行 . Foreground Service可以使用SQLite3 API,如以下帖子所述 .

但是,AsyncStorage文档说"On Android, AsyncStorage will use either RocksDB or SQLite based on what is available"(https://facebook.github.io/react-native/docs/asyncstorage) . 是否有任何方法可以确定AsyncStorage是否会使用SQLite3,即使由于手机上安装了其他应用程序而存在RocksDB?当RocksDB为"available"时,让我们的应用程序中断会很糟糕 .

我看过的其他链接: