Skip to content

Please note that Album Searcher for Google Photos is unofficial and not endorsed by Google.

License

Notifications You must be signed in to change notification settings

tnc1997/google-photos-album-searcher

Repository files navigation

Album Searcher for Google Photos

Album Searcher for Google Photos gives you an enhanced search experience for shared albums.

Getting Started

  1. Create a Google Cloud Platform project.
  2. Enable the Photos Library API.
  3. Create an OAuth consent screen with the scopes "openid" and "https://www.googleapis.com/auth/photoslibrary.readonly".
  4. Create an OAuth client for desktop.
  5. Create an OAuth client for web with the authorised JavaScript origin "http://localhost:1234" and the authorised redirect URI "http://localhost:1234/oauth2redirect.html".
  6. Download the JSON of the desktop OAuth client to the directory "files" with the name "desktop_client_secret.json".
  7. Download the JSON of the web OAuth client to the directory "files" with the name "browser_client_secret.json".
  8. Create a Firebase project linked to the existing Google Cloud Platform project.
  9. Add a web app to the Firebase project making a note of the Firebase config.
  10. 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",
    };
  11. Run flutter run --device-id windows --no-sound-null-safety to start the application on desktop.
  12. Run flutter run --device-id chrome --no-sound-null-safety --web-port 1234 --web-renderer html to start the application on web.