Code Monkey home page Code Monkey logo

nativescript-google-login's People

Contributors

captainhaddockfr35 avatar dependabot[bot] avatar rustamakimov avatar tkrevh avatar vitaliykim avatar

Stargazers

 avatar  avatar

Watchers

 avatar

nativescript-google-login's Issues

Request - add logout()

Thanks for this awesome plugin ๐Ÿ‘
Please, would it be possible to add also a logout function?

Issue is, if user logs in with Google once, they can not log in with Google using another account - the login dialog with account selection is never presented to them again.

Undefined value returned from google services

Hi,
I am having some troubles with setting up google login on my angular app. This is the error I get when I push the log in button. The setup process is not that complicated, so I don't know what am I doing wrong. I tried running the app in the Android 9, and below you can see the error I get, login.ts and AndroidManifest.xml. Also, I am not using a service, so for this part of developement i want to make it simple (just nativescript app to google login if that is possible).

image

image

image

Gmail account selection keeps triggering 'cancelled'

Which platform(s) does your issue occur on?

Android

Info

I'm getting the popup where an account can be selected to show up, but when I tap on my account the loginprocedure gets 'cancelled'. Am I missing something?

###code-snippets
//init
GoogleLogin.init({
google: {
initialize: true,
serverClientId: xxxxx,
clientId: xxxx,
isRequestAuthCode: false
},
activity: application.android.foregroundActivity
});

//login button
GoogleLogin.login(result=>{
console.dir(result);
});
###logs
JS: 'Starting activity for result...'
JS: 'Cancelled'
JS: 'result. provider = google' 'onActivityResult()'
JS: 'result. code = 1' 'onActivityResult()'
JS: 'Calling Callback function with Results'
JS: ==== object dump start ====
JS: provider: "google"
JS: code: "1"
JS: ==== object dump end ====

presentingViewController must be set.

IOS ERROR: presentingViewController must be set.
ANDROID ERROR:
activity: undefined
JS: Will request ID token
JS: Starting activity for result...
JS: Cancelled
JS: result. provider = google onActivityResult()
JS: result. code = 1 onActivityResult()
JS: Calling Callback function with Results
JS: ==== object dump start ====
JS: provider: "google"
JS: code: "1"
JS: ==== object dump end ====

@pboulch Could you please help me with this.

If I logout and then try to login again the activity does not return any data

The first time I login everything works as intended, then if I logout and try to login again the app opens the google login activity and after I select the account the activity closes and nothing happens.
In logs the last message is "Starting activity for result..." and it doesn't work till I restart the application. Is there something that I am missing?

Which platform(s) does your issue occur on?

  • Android

Please, provide the following version numbers that your issue occurs with:

  • CLI: 6.22

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.