AsyncStorage 是否跨应用共享?
Is AsyncStorage shared across apps?
我的问题来自文档:https://facebook.github.io/react-native/docs/asyncstorage.html#clear
AsyncStorage.clear -> Erases all AsyncStorage for all clients, libraries, etc....
这是否意味着所有应用共享同一个 AsyncStorage?
AsyncStorage 不 在多个应用之间共享。每个应用程序都在自己的沙箱环境中运行,无法访问其他应用程序。
调用AsyncStorage.clear仅意味着您将删除您的应用存储在AsyncStorage 中的所有数据。
包括
- 由使用 AsyncStorage 的库存储的所有数据
https://github.com/sunnylqm/react-native-storage
- 所有用户的所有数据(在多用户的情况下)
有关应用沙盒的更多信息,您可以阅读此答案:
What is Sandbox in ios , Can i Trans data between in one App to Another App in iPhone,if possible how
我的问题来自文档:https://facebook.github.io/react-native/docs/asyncstorage.html#clear
AsyncStorage.clear -> Erases all AsyncStorage for all clients, libraries, etc....
这是否意味着所有应用共享同一个 AsyncStorage?
AsyncStorage 不 在多个应用之间共享。每个应用程序都在自己的沙箱环境中运行,无法访问其他应用程序。
调用AsyncStorage.clear仅意味着您将删除您的应用存储在AsyncStorage 中的所有数据。
包括
- 由使用 AsyncStorage 的库存储的所有数据 https://github.com/sunnylqm/react-native-storage
- 所有用户的所有数据(在多用户的情况下)
有关应用沙盒的更多信息,您可以阅读此答案: What is Sandbox in ios , Can i Trans data between in one App to Another App in iPhone,if possible how