question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prompt Modal closes automatically after user chooses his account/email

See original GitHub issue

Steps to Reproduce

  • You must provide a minimal and easy-to-run reproduction of your issue - how to create a minimal reproduction?. We’re a small team of maintainers and do not have time to try reproduce bugs ourselves.

  • Please try to reproduce the bugs on the provided example app. Either provide a link to the repo that reproduces the bug or provide your version of the index.js file that reproduces the issue and that we can easily use.

  • Explain the steps we need to take to reproduce the issue.

A clear and concise description of what the bug is.

When a user clicks on the GoogleSignIn Button, it loads the GoogleSignIn prompt modal for the user to select his google account. When the user click on his account from the prompt, the modal closes automatically. This happens on random devices as it works properly on some android devices.

I also notice that the issues happens more on the published app on playStore but works well on my development mode app when i run the app directly from my code editor.

Its really confusing since i cant figure out why the googleSignIn prompt suddenly closes after users chooses his account, thus taking the user back to the GoogleSignIn button to repeat the process again.

To Reproduce Steps to reproduce the behavior:

  1. Click on the GoogleSignIn Button
  2. on the Prompt modal, select/choose an account to continue
  3. After clicking on an account to use for your signIn
  4. The modal prompt closes. So user repeats the process again till infinity
  • Include a gif if you think it may help.

Link to app on play store. https://play.google.com/store/apps/details?id=com.betBank&hl=en&gl=US

Link to a Video with the Bug https://drive.google.com/file/d/1K-axClCgfyfsqAjBjlFy-bD8SlmlW1lG/view?usp=sharing

Screenshots WhatsApp Image 2022-01-25 at 5 48 01 PM

  • If you’re asking for help, please make it easy for us to help you!

Expected Behavior

Expected behavior A clear and concise description of what you expected to happen.

When a user clicks on the GoogleSignIn button, he is presented with the Choose account promp-modal. He select an account of his chooses, after which he accpets the scope of access from the marchant and clicks on the continue button. Then the selected googleAccount info would returned from GoogleSignin.signIn();

Actual Behavior

Environment

Please provide

  • react-native version 0.59.8
  • @react-native-google-signin/google-signin version 3.0.4
  • your Podfile, output of running pod install and cocoapods version (if applicable)
  • version of Android => Android 9 and other android versions
  • gradle => Gradle 6.2
  • android plugin for gradle => com.android.tools.build:gradle:4.0.1
  • `play-services-auth => 17.0.0 and
  • version of the Google Play Services app on your phone (if applicable)
  • version of iOS (if applicable) Happens on random Android OS version
  • Happens on random Android devices

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

4reactions
04amitpanchalcommented, Feb 17, 2022

I am also facing this issue after selecting the account popup modal automatically close. and even I don’t get any errors so how can I find what goes wrong in code.

1reaction
Sydney-o9commented, Jul 18, 2022

Same issue here - I followed @okechukwu0127 which does work - it’s a bit of a hack however

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prompt Modal closes automatically after user chooses his ...
When a user clicks on the GoogleSignIn Button, it loads the GoogleSignIn prompt modal for the user to select his google account. When...
Read more >
Google SignIn SDK is failing by throwing error, A non ...
I have been trying to integrate Social login in my react native project in which I was able to do facebook login successfully...
Read more >
How to use the Google One Tap solution in your webapp to ...
On mobile devices, One Tap will close automatically after a short time if the user do not interact with it. After understanding the...
Read more >
Authenticate Using Google with JavaScript - Firebase
Authenticate with Firebase using the Google provider object. You can prompt your users to sign in with their Google Accounts either by opening...
Read more >
Modal · Bootstrap v5.0
When modals become too long for the user's viewport or device, they scroll independent of the page itself. Try the demo below to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found