Giter VIP home page Giter VIP logo

Comments (6)

pixnbit avatar pixnbit commented on August 14, 2024 1

I did some debugging. The reason is that the onCurrentUserChanged callback to update _currentUser is after the signIn or signInSilently async calls. (Not sure it's a bug or the google_sign_in behavior changed). Here is my fix:

(Update all your libraries to latest in the pubspec.yaml) In PhotosLibraryApiModel:

class PhotosLibraryApiModel extends Model {
  PhotosLibraryApiModel() {
    _googleSignIn.onCurrentUserChanged.listen((GoogleSignInAccount account) {
      _currentUser = account;
      if (client == null) {
        client = PhotosLibraryApiClient(_currentUser.authHeaders);
        updateAlbums();
      } else {
        notifyListeners();
      }
    });
  }

from photos-sharing.

ciprianprohozescu avatar ciprianprohozescu commented on August 14, 2024

I have the same issue.

from photos-sharing.

mohammad19-meet avatar mohammad19-meet commented on August 14, 2024

It has been almost 10 months and the same error is still present. The rotating progress bar keeps on spinning with no errors in sight. It is clearly not a problem in the code so what can it be cause by ?

It would be very helpful if someone who might have encountered the same issue and resolved it to share how he fixed it.

Thank you

from photos-sharing.

jfschmakeit avatar jfschmakeit commented on August 14, 2024

Did you follow the steps in step 4 in the codelab "Enable the Google Photos Library API", in particular your Google developers project needs to have a "support email address" configured. You don't need to submit it for verification, but this page needs to include your OAuth scopes and email address. See also issue #7

Having said that, I'll try to reproduce this issue to see if there's an issue with the codelab itself.

from photos-sharing.

SusannaJung avatar SusannaJung commented on August 14, 2024

@pixnbit Thank you! It worked for me

from photos-sharing.

jfschmakeit avatar jfschmakeit commented on August 14, 2024

We have a fix for this ready and should be pushing out an update to the codelab next week. Please stay tuned!

The workaround mentioned above should work in the meantime.

from photos-sharing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.