-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support basic sign in and hosted UI sign in in same app #1207
Comments
Hi @niyonx thanks for opening this issue. Username and social login should be able to configured at the same time. Looking at the error logs you pasted, it contains Could you provide some details to help us understand this issue? What version of amplify-flutter libraries you are using? (can paste the content of
Also could you paste the content of the generated |
Yes I'm not sure why it is using the awsconfiguration.json instead of the amplifyconfiguration.dart. Here is the contents of pubspec.lock. pubspec.lock
Here is my amplifyconfiguration.dart
|
Another log:
|
Thanks @niyonx . In what environment you are testing the App? Android emulator, physical Android device? Do you have Chrome installed? |
I am testing on an android emulator. Yes I have chrome installed. I actually forgot to modify the AndroidManifest.xml. Now the actual sign in sign up are working, but I still get some errors on the amplify configuration. It is still using config from awsconfiguration.json for some reason.
Here is my manifest
|
Thanks for the follow up @niyonx and I'm glad the social sign in is working. |
The exception seems caused by this issue aws-amplify/amplify-android#1180 when configuring and using both user name login and social login. |
Hi everyone, I am experiencing a similar issue by introducing the basic sign in with username/password and social sign in with Google and Facebook to the same app. I am using amplify_flutter 1.0.0-next.0+1, and test it in Android emulator Pixel 4 with API 33. The error I get is
When I remove the May I ask if there is any update? Or is there any workaround? Thank you |
Hi @ben-the-developer, this use case should be supported in our dev-preview. Would you be willing to create a separate ticket with the methods you're calling and your full configuration file? You mention |
Hi @dnys1 , yea, it's |
@niyonx - Were you able to get sign in fully working? If so, I think the logs you are seeing can be safely ignored. I also wanted to not that we have recently released a new developer preview version of the Auth category (amplify_flutter v1.0.0-next.0). This new version is a full re-write of the auth category in dart. I don't think you will see this issue in this version as it doesn't depend on Amplify-Android. You can read more about the developer preview release in the blog post and docs. Let me know if the issue you saw was preventing sign in from functioning or if you were just observing the messages in the logs. |
@niyonx - Please let me know if you are still facing an issue. Otherwise I will close this issue out. |
Describe the bug
Can't we use both normal username password sign in and social sign in?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
D/AWSMobileClient(20596): Using the SignInProviderConfig from `awsconfiguration.json`. W/AWSMobileClient(20596): Failed to parse HostedUI settings from store. Defaulting to awsconfiguration.json W/AWSMobileClient(20596): java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference W/AWSMobileClient(20596): at org.json.JSONTokener.nextCleanInternal(JSONTokener.java:121) W/AWSMobileClient(20596): at org.json.JSONTokener.nextValue(JSONTokener.java:98) W/AWSMobileClient(20596): at org.json.JSONObject.<init>(JSONObject.java:165) W/AWSMobileClient(20596): at org.json.JSONObject.<init>(JSONObject.java:182) W/AWSMobileClient(20596): at com.amazonaws.mobile.client.AWSMobileClient.getHostedUIJSON(AWSMobileClient.java:713) W/AWSMobileClient(20596): at com.amazonaws.mobile.client.AWSMobileClient$2.run(AWSMobileClient.java:614) W/AWSMobileClient(20596): at com.amazonaws.mobile.client.internal.InternalCallback$1.run(InternalCallback.java:101) W/AWSMobileClient(20596): at java.lang.Thread.run(Thread.java:923) D
Platform
Amplify Flutter current supports iOS and Android. This issue is reproducible in (check all that apply):
[x] Android
[] iOS
The text was updated successfully, but these errors were encountered: