Is AsyncStorage shared across apps?

2020-06-16 03:43发布

My question originates from the docs: https://facebook.github.io/react-native/docs/asyncstorage.html#clear

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

does that mean that all apps share the same AsyncStorage?

1条回答
【Aperson】
2楼-- · 2020-06-16 04:05

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

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

That includes

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

查看更多
登录 后发表回答