since all capacitor apps run on a WebView and use localhost as an origin does this means that the data stored in the WebView's localStorage or indexeddb is shared between hybrid apps. Since the origin is the same for all apps...
CodePudding user response:
you may use @capaciors/storage to target native storage and for secure storage you can also use the comunity plugin secure-storage
import { SecureStoragePlugin } from 'capacitor-secure-storage-plugin';
https://github.com/martinkasa/capacitor-secure-storage-plugin
if you want to use a paid implementation there is Ionics secure storage as well
CodePudding user response:
The data is unique per app on both iOS and Android, it’s not shared within apps.