-
-
Notifications
You must be signed in to change notification settings - Fork 38
Setting up Google Drive API
These steps are required for Notes Backup with Google Drive.
1. Create a Google Cloud project
Go to Google Cloud Console and click on "New Project".
Call the project "Unique Bible App"
2. Create OAuth client ID credentials
Go to Menu > APIs & Services > Credentials
Click on "Create Credentials" at the top and select "Oauth client ID".
Select "Desktop App" for Application type.
Enter "Unique Bible App" for name.
It will then show a window that says "OAuth client created". Click on the "Download JSON" link. It will download a file like "client_secret_1234567890.apps.googleusercontent.com.json". Rename this file to "credentials.json" and place it in the UBA root folder.
Go to Menu > APIs & Services > Library
Search for "google drive api" and click on "Google Drive API"
Click on "Manage", then click on "Enable"
Under "Credentials", verify the "Unique Bible App" Oauth is selected.
Click on "Oauth consent screen" in the left menu.
Configure the consent screen with:
- Set user type to external
- Enter "Unique Bible App" for name
- Enter your email for support email
- Leave everything else blank
Verify Publishing status is "In Production".
When you first run this, it will ask for the Google account to use.
Choose your google account
Select "Advanced"
(Do not worry! Our app do NOT collect any of your information.)
(Remarks: You credentials is stored locally on your device. It is used only for communicating with google-drive.)
(UBA does NOT collect your data.)
Select "Go to ..."
Select "Allow"
Select "Allow"
If you get "Failed to upload bible notes!", look in the console to see the details of the error.
If you see "The OAuth client was deleted" in the console error messages, that means you had regenerated the credentials. After regenerating credentials, you will need to delete the file "token.pickle" (this file caches the old credentials), then restart UBA.