-
Hello! I trying to put only google authentication in my app , but i got a error login every time i try to log in, the func error_listener it's called each time but it's working properly in my computer , what can cause this issue, how can i fixed that ? |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 19 replies
-
Are you facing the error in the android application? In any case, looking at the logs might be helpful. |
Beta Was this translation helpful? Give feedback.
-
Hi, no flask is only used on Desktop and not on Android so it's not causing
the error. As I said, you need to look at the adb logs to see what's going
on there.
…On Fri, Jan 28, 2022, 9:41 AM loldjy123 ***@***.***> wrote:
Hello dear, when i running the app in my pc I get this following warning
error
Serving Flask app 'kivyauth.desktop.utils' (lazy loading)
- Environment: production
WARNING: This is a development server. Do not use it in a production
deployment.
Use a production WSGI server instead.
- Debug mode: off
- Running on https://127.0.0.1:9004/ (Press CTRL+C to quit)
do you think that might be the reason why I getting the error login when
I'm running the App in my android ?
—
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI3EPOGPOT7UCNPZBY6X4N3UYIJOLANCNFSM5MXMOOHA>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Hi dear I'm so sorry for boring you, I was unable to adb logs in my computer but now i finally able to do so, I think i get something in the output from the logcat python : [INFO ] [KivyAuth ] Error signing in using Google. JVM exception occurred: 10: com.google.android.gms.common.api.ApiException Everything else seems fine . Do you have any idea about that ? more info fro the output : 01-28 02:34:15.979 26752 26752 W SignIn : [Activity,SignInChimeraActivity] Failed to record the consent. |
Beta Was this translation helpful? Give feedback.
-
Yes, the issue is known. It comes up when the SHA key on your system and the one you used to create API key in google console, are different. |
Beta Was this translation helpful? Give feedback.
-
Thank you sir, i will follow the instructions and I’ll keep you update. Thank you again for you help |
Beta Was this translation helpful? Give feedback.
-
Hello Dear I'm still experencing the same issue, so i have a few question to try to figure out what;s wrong. What is the correct package name to put on googe cloud console ? Is that the package.name from buildozer.spec file or the package domaine + package name. What is the best way to find SHA-1 in cmd ? reason why i'm asking it's because they are 2 way that i look for it, and I got 2 different result. what do you think is the best one? Can you please give me some advise dear? Thank you |
Beta Was this translation helpful? Give feedback.
-
Works on desktop with both Client_ID and Client_Secret but not on mobile with the android oAuth2.0 |
Beta Was this translation helpful? Give feedback.
-
@usMAEC it's working for me now, if you target android you don't have to put Client_id and secret_id, you can just write initialize google function like initialize_google(self.after_login, self.error_listener). one last thing, when you are creating the google OAuth, you have to put SHA-1 fingerprint from the system that you are building you app, for example if you using windows and build the app on Ubuntu system, Don't take sha-1 from you windows, you have to take it from the ubuntu system. |
Beta Was this translation helpful? Give feedback.
-
Make sure you enter correct package name and SHA-1 fingerprint in Google cloud console while creating OAuth client. Those are the only mismatch fields that leads to this issue. |
Beta Was this translation helpful? Give feedback.
Make sure you enter correct package name and SHA-1 fingerprint in Google cloud console while creating OAuth client. Those are the only mismatch fields that leads to this issue.