Comments (6)
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.
I have the same issue.
from photos-sharing.
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.
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.
@pixnbit Thank you! It worked for me
from photos-sharing.
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)
- Sing in error HOT 1
- Google sign-in error, configuration questions. HOT 1
- The screenshot is wrong. HOT 2
- Page7 question HOT 2
- Build Failing HOT 4
- No Gradle sync HOT 1
- Warning: Your app isn't using AndroidX. HOT 3
- Uploading photo issue HOT 1
- User that joined can't upload image HOT 7
- Project doesn't build HOT 5
- is the Google services are Missing? Iam getting this error while trying to login with my account. HOT 1
- Error: Not found: 'dart:ui' HOT 1
- Contribute API to package:googleapis? HOT 1
- App taking too long to run HOT 1
- Your Flutter application is created using an older version of the Android embedding. HOT 4
- Step #3 Running the App throws Localizations.localeOf(context, nullOk: true) : null HOT 3
- Google SignIn Error HOT 4
- Support pagination when listing albums
- project does not build HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photos-sharing.