Giter VIP home page Giter VIP logo

Comments (9)

YousefED avatar YousefED commented on May 24, 2024 1

@joonhocho the core of the issue is, is that:

await signOutPromise()

never resolves on iOS. the onDisconnect / onDisconnectError handlers are never called.

Do you have a suggested fix?

from react-native-google-sign-in.

jasonnathan avatar jasonnathan commented on May 24, 2024

I've experienced this too. My UI hangs on awating the Promise to resolve. Tapping the button again signs the user out

from react-native-google-sign-in.

cristian-milea avatar cristian-milea commented on May 24, 2024

same problem,

thanks @YousefED for quick-fix

from react-native-google-sign-in.

RalfNieuwenhuizen avatar RalfNieuwenhuizen commented on May 24, 2024

@joonhocho what's your view on this?

from react-native-google-sign-in.

joonhocho avatar joonhocho commented on May 24, 2024

@YousefED If you remove async, are you saying it will raise disconnect event and thus resolved?

from react-native-google-sign-in.

YousefED avatar YousefED commented on May 24, 2024

@joonhocho honestly this is a while ago, I see we also made the following change to resolve this issue: YousefED@8227feb. Don't remember 100% but looks related :)

from react-native-google-sign-in.

calvinkei avatar calvinkei commented on May 24, 2024

experiencing the same issue, signOutPromise never resolve (nor reject)

from react-native-google-sign-in.

joonhocho avatar joonhocho commented on May 24, 2024

@YousefED @jasonnathan @frozenxis @RalfNieuwenhuizen @calcal12

This issue has been fixed with new version.

Just upgraded to the latest Google SignIn SDK for iOS. (npm version 1.0.16)
Please follow new instructions carefully.
https://github.com/joonhocho/react-native-google-sign-in#ios
Also refer to ExampleApp if something is not working. I've tested ExampleApp and is working fine.
Feel free to reopen this issue if you cannot get it working.

from react-native-google-sign-in.

joonhocho avatar joonhocho commented on May 24, 2024

FYI, signout should never call 'disconnect' events. disconnect should raise disconnect events. I fixed it accordingly.

from react-native-google-sign-in.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.