Function Signature
Description
Configures Google Drive backup storage. This must be called before using Google Drive for backup or recovery operations.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
clientId | String | Yes | Your Google OAuth client ID |
applicationName | String | No | Optional application name |
Returns
void
Example
Setup Requirements
Android
- Create a Google Cloud project
- Configure OAuth consent screen
- Create an Android OAuth client ID
- Add the client ID to your app
iOS
- Create a Google Cloud project
- Configure OAuth consent screen
- Create an iOS OAuth client ID
- Add the client ID to your app
- Add URL schemes to Info.plist
Errors
| Code | Description |
|---|---|
NOT_INITIALIZED | Portal was not initialized |
CONFIGURATION_FAILED | Failed to configure Google Drive |