AsyncStorage 是否跨应用共享? [英] Is AsyncStorage shared across apps?

查看:76
本文介绍了AsyncStorage 是否跨应用共享?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题来自文档:https://facebook.github.io/react-native/docs/asyncstorage.html#clear

AsyncStorage.clear -> 清除所有客户端、库等的所有 AsyncStorage....

AsyncStorage.clear -> Erases all AsyncStorage for all clients, libraries, etc....

这是否意味着所有应用共享同一个 AsyncStorage?

does that mean that all apps share the same AsyncStorage?

推荐答案

AsyncStorage 在多个应用程序之间共享.每个应用都运行它自己的沙盒环境,无法访问其他应用.

AsyncStorage is not shared between multiple apps. Every app runs it it's own sandbox environment and has no access to other apps.

调用 AsyncStorage.clear 仅意味着您将删除您的应用程序存储在 AsyncStorage 中的所有数据.

To call AsyncStorage.clear only means you will delete all data which your app has stored in AsyncStorage.

包括

有关应用沙盒的更多信息,您可以阅读以下答案:ios 中的沙盒是什么,我可以在一个应用程序之间传输数据到 iPhone 中的另一个应用程序吗,如果可能的话如何

For more information about app sandboxing you can read this answer: What is Sandbox in ios , Can i Trans data between in one App to Another App in iPhone,if possible how

这篇关于AsyncStorage 是否跨应用共享?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆