Function Signature
Description
Configures Google Drive backup storage. Must be called before usingPortalBackupMethod.googleDrive for backup or recovery. backupOption selects where the encrypted backup is written.
Parameters
PortalGDriveBackupOption
Returns
void
Important Notes
- All three options are supported by the native iOS and Android SDK versions bundled with the current
portal_flutterrelease. If you pin or override a lower native SDK version,appDataFolderandappDataFolderWithFallbackmay be rejected at runtime and backups previously stored in the App Data Folder will be lost — keep yourportal_flutterdependency current to avoid this. - Choose the appropriate
backupOptionbased on your application’s requirements:- Use
appDataFolderto keep wallet backups hidden from users (recommended). - Use
customFolderif you want users to see the backup file in their Drive UI. - Use
appDataFolderWithFallbackonly when migrating an existing custom-folder integration.
- Use
Example Usage
Errors
Throws aPortalException on failure: