Comments (6)
Hey hey @khatruong2009, I know it. I just opened it because in the documentation itself it tries to configure Amplify before calling runApp, so I thought you'd like to review the doc.
![image](https://private-user-images.githubusercontent.com/3417108/304211133-d6185897-52b0-4e16-a247-60a1869c1a27.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTM5NDQyOTcsIm5iZiI6MTcxMzk0Mzk5NywicGF0aCI6Ii8zNDE3MTA4LzMwNDIxMTEzMy1kNjE4NTg5Ny01MmIwLTRlMTYtYTI0Ny02MGExODY5YzFhMjcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDQyNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA0MjRUMDczMzE3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzRhMzNkODk2NmRiOWY3NTdiYjliYTg2MjMwYzA4NjJmYTU4ZjkyZDRmNTUwNjJjZjczYjgxY2NlODJlMDMxNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.fxlx9htyWfAPZxVXl7VvqcU38WhjT9jdDGHL51L-azs)
from amplify-flutter.
Hi @malaquf, I just merged the change on the amplify-docs repo and it will be included in the next release. Thank you for pointing out this issue to us.
from amplify-flutter.
Great, thanks for taking care and also pointing out the right repo, so the next time I could maybe submit a PR on my own :)
from amplify-flutter.
Hi @malaquf, WidgetsFlutterBinding.ensureInitialized();
is only needed when calling _configure
before calling runApp
. This is because calling configureAmplify()
before runApp
creates a race condition. If you put _configureAmplify()
in the initState()
or after the runApp
and it should work. This issue isn't Gen 2 specific. Let me know if that fixes your problem, thanks.
from amplify-flutter.
Oh ok I see. Thank you for bringing this to our attention, I'll get working on updating the docs now.
from amplify-flutter.
@malaquf The change should be out in 25-30 minutes. I'm going to close this issue now but feel free to let us know if you have any other issues in the future.
from amplify-flutter.
Related Issues (20)
- Feature Request: Sharing authentication state between apps from the same developer HOT 9
- How to call Admin Queries API with authorization? HOT 3
- S3 access denied when making the API call. HOT 5
- No way to send unconfirmed user confirmation email when they restart the app HOT 5
- DataStore sync on Android physical devices takes very long time HOT 7
- Initial DataStore Sync Slow for Android Devices HOT 4
- fetchUserAttributes function cause toomanyrequestexception HOT 8
- AmplifyPushNotificationsPinpoint doesn't support offline configuration HOT 3
- Stuck in WebUI after authenticating with a certificate in iOS HOT 16
- Type comparison with UnderlyingExceptions might not be working as expected. HOT 8
- Update device_info_plus dependency HOT 2
- Update connectivity_plus dependency HOT 1
- Datastore without Cloud sync - Android build failing HOT 6
- Unable to get local issuer certificate when configure Amplify on Windows Devices HOT 8
- User cancelled OAuth flow error from signInWithRedirect
- Amplify confirm sign in with custom authentication flow timing out HOT 1
- Unauthorized error when Data-specific Authorization with AppSync (Datastore/GraphQL) HOT 6
- Flutter Web AmplifyAuthCognito SignOut not working HOT 8
- DataStore.observeQuery is not working when model has owner + static group auth rules HOT 5
- `flutter build apk` results in "Module was compiled with an incompatible version of Kotlin..." HOT 8
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 amplify-flutter.