Album Searcher for Google Photos gives you an enhanced search experience for shared albums.
- Create a Google Cloud Platform project.
- Enable the Photos Library API.
- Create an OAuth consent screen with the scopes "openid" and "https://www.googleapis.com/auth/photoslibrary.readonly".
- Create an OAuth client for desktop.
- Create an OAuth client for web with the authorised JavaScript origin "http://localhost:1234" and the authorised redirect URI "http://localhost:1234/oauth2redirect.html".
- Download the JSON of the desktop OAuth client to the directory "files" with the name "desktop_client_secret.json".
- Download the JSON of the web OAuth client to the directory "files" with the name "browser_client_secret.json".
- Create a Firebase project linked to the existing Google Cloud Platform project.
- Add a web app to the Firebase project making a note of the Firebase config.
- Create a file "firebase-config.js" in the directory "web" with the following content:
export var firebaseConfig = { apiKey: "API_KEY", authDomain: "PROJECT_ID.firebaseapp.com", databaseURL: "https://PROJECT_ID.firebaseio.com", projectId: "PROJECT_ID", storageBucket: "PROJECT_ID.appspot.com", messagingSenderId: "SENDER_ID", appId: "APP_ID", measurementId: "G-MEASUREMENT_ID", };
- Run
flutter run --device-id windows --no-sound-null-safety
to start the application on desktop. - Run
flutter run --device-id chrome --no-sound-null-safety --web-port 1234 --web-renderer html
to start the application on web.