Need a complete steps of Cordova/PhoneGap Social login.....

177 views
Skip to first unread message

Devon Yoo

unread,
Aug 9, 2018, 10:51:10 AM8/9/18
to Firebase Google Group
Hi guys... 

I am spending a few days to have my Google login working in my Cordova app but couldn't have it done yet....

First I followed this link:

and this link is absolutely not enough to complete Google login and I can never find any other well-written tutorials of doing it.. I am just collecting pieces of information from everywhere and it is really hard to combine them... 

Is there any good step by step tutorial I can follow?

I am really worried about my next missions - DB and Storage in Cordova....

Thanks in advance

Devon

orhan arıkan

unread,
Aug 10, 2018, 9:23:57 AM8/10/18
to Firebase Google Group
While i dont have any other tutorial link to provide for you, i can tell what the guide is missing.

I spent lots of time trying make Google login work.

Here is my two cents on top of that guide,

1. You need to register your widget id (com.mycompany.myapp) in firebase console
2. Dont forget to include cordova.js. Otherwise inapp browser wont get launched
3. Besides auth, DB dont have any gimmick to make it work.

Hope it helps

Jorge Vergara

unread,
Aug 10, 2018, 7:02:50 PM8/10/18
to Firebase Google Group
Hey Devon,

I wrote a guide on Google+ login a while back, I haven't updated it in a while but it should give you a general idea of what you have to do: https://javebratt.com/ionic-google-login/

There's one thing I wanna share, there are 2 ways to get the social logins working with Cordova/Phonegap/Ionic/etc one is with the InAppBrowser and it opens a browser window so the user can log in, and the second one is with the native plugin, either for google-plus, facebook-connect, twitter, etc.

I recommend always using the native plugin, it's a bit of extra work if you're trying to integrate multiple providers, but it gives the best user experience for your users since instead of opening the browser it will use the native account picker for Google, or the twitter/facebook apps, etc.
Reply all
Reply to author
Forward
0 new messages