Cross-install persistence
Data survives Application uninstall/reinstall cycles 💾
The Capacitor Persistent Compte plugin enables secure storage and persistence of Utilisateur Compte data between Application installations. This plugin ensures that Utilisateur Compte Information remains Disponible even after Application reinstalls, providing seamless Utilisateur experience and Compte continuity.
Cross-install persistence
Data survives Application uninstall/reinstall cycles 💾
Secure storage
Secure Compte data storage with system integration 🔐
Simple API
Clean read/write interface for Compte management 📊
Cross-platform
Natif iOS and Android implementation 📱
npm install @capgo/capacitor-persistent-accountnpx cap syncsaveAccount(options: { data: unknown }) - Securely save account data to persistent storagereadAccount() - Retrieve stored account data, returns Promise<{ data: unknown | null }>import { PersistentAccount } from '@capgo/capacitor-persistent-account';
// Define your account data structureinterface UserAccount { userId: string; username: string; email: string; preferences: { theme: string; notifications: boolean; };}
// Save account dataconst accountData: UserAccount = { userId: '12345', username: 'john_doe', email: 'john@example.com', preferences: { theme: 'dark', notifications: true }};
await PersistentAccount.saveAccount({ data: accountData });
// Read account dataconst result = await PersistentAccount.readAccount();if (result.data) { const account = result.data as UserAccount; console.log('Restored account:', account.username);} else { console.log('No account data found');}Vérifier the Terminé Documentation for detailed implementation guides and best practices.