Open mufayed opened 2 years ago
Have you tried changing the language at bottom Google keeps cookies of your language selection from if you have used Google sign in in other places. Also have you tried running on a fresh emulator
Have you tried changing the language at bottom Google keeps cookies of your language selection from if you have used Google sign in in other places. Also have you tried running on a fresh emulator
I've tried that, I also sent the apk to my friend who does not use Arabic and the google sign-in page was in Arabic too.
Have you tried on an emulator, if you are testing on a physical device Google sign in will use you location to show you the page specific to you locale language
Sorry it would do that on an emulator as well if you’re based in a country speaking arabic
Hi @mufayed where is your device ip address? Even if you set the device settings to English, if your IP shows you are in a Arabic speaking region, Google switches to the local language. I've had the problem on my side before when traveling in Europe (switched automatically to Italian, French, etc).
Can you try using a VPN and changing your IP address to an english speaking country and trying again?
As noted here, the only workaround seems to be appending a query parameter to the Google login page. Unfortunately, Cognito does not allow passing query parameters to the redirected login page, which would be required. This is currently a known limitation of Cognito: https://github.com/aws-amplify/amplify-flutter/issues/1528#issuecomment-1205936858.
Hi @mufayed where is your device ip address? Even if you set the device settings to English, if your IP shows you are in a Arabic speaking region, Google switches to the local language. I've had the problem on my side before when traveling in Europe (switched automatically to Italian, French, etc).
Can you try using a VPN and changing your IP address to an english speaking country and trying again?
UAE, After testing on VPN it's changed to English, but that is not a solution because the application will target non-Arabic speakers, Is there a way of passing a parameter or forcing the google login page to be in English?
Hi @mufayed, as mentioned there is no way to currently pass query parameters to Google which would allow overriding the default locale behavior. This is a limitation of Cognito, unfortunately. I will leave this ticket open until they have a fix in place.
Hi @mufayed, as mentioned there is no way to currently pass query parameters to Google which would allow overriding the default locale behavior. This is a limitation of Cognito, unfortunately. I will leave this ticket open until they have a fix in place.
Thank you, I hope the team solves this very soon.
Description
I got a problem, The users that are trying to log in via google, the google page is always in Arabic for them, so is there any way to change the language and make it default to English?
Categories
Steps to Reproduce
1- During testing on emulators got the problem 2- Checked the emulator's (ios and android) language but it's English with English region
Screenshots
Platforms
Android Device/Emulator API Level
No response
Environment
Dependencies
Device
Iphone 13, Iphone 12, Different android devices and emulator too
OS
IOS 15.5, Android API (30,32,33)
Deployment Method
Amplify CLI
CLI Version
9.1.0
Additional Context
No response
Amplify Config
const amplifyconfig = ''' { "UserAgent": "aws-amplify-cli/2.0", "Version": "1.0", "auth": { "plugins": { "awsCognitoAuthPlugin": { "UserAgent": "aws-amplify-cli/0.1.0", "Version": "0.1.0", "IdentityManager": { "Default": {} }, "CredentialsProvider": { "CognitoIdentity": { "Default": { "PoolId": "eu-west-1:fa1b4221-13ce-4fe0-###########", "Region": "eu-west-1" } } }, "CognitoUserPool": { "Default": { "PoolId": "eu-west-###########", "AppClientId": "###########", "Region": "eu-west-1" } }, "Auth": { "Default": { "OAuth": { "WebDomain": "yabi870f2da3-870f2da3-dev.auth.eu-west-1.amazoncognito.com", "AppClientId": "771727dq55o7f37l1iad82ko01", "SignInRedirectURI": "myapp://", "SignOutRedirectURI": "myapp://", "Scopes": [ "phone", "email", "openid", "profile", "aws.cognito.signin.user.admin" ] }, "authenticationFlowType": "USER_SRP_AUTH", "socialProviders": [ "GOOGLE" ], "usernameAttributes": [ "EMAIL" ], "signupAttributes": [ "EMAIL" ], "passwordProtectionSettings": { "passwordPolicyMinLength": 8, "passwordPolicyCharacters": [] }, "mfaConfiguration": "OFF", "mfaTypes": [ "SMS" ], "verificationMechanisms": [ "EMAIL" ] } } } } } }''';