captainhaddockfr35 / nativescript-google-login Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
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?
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.
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).
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.
i have the clientId from the OAuth 2.0 Client in google cloud platform, but what is the serverClientId? how can i get it?
Android
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 ====
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.