angularFire simpleLogin with Ionic


#1

I am an Ionic newbie trying to get a handle on integrating angularFire with the Ionic framework. I have cloned the ionic-contrib-firebase-login git and followed the same pattern for setting up the login sequence for my app.

When running the app via the ‘ionic serve’ command line utility the login page is displayed and I can login accordingly with the redirect displaying the hime page. However when I run the same code on the iOS emulator or an iOS device the screen just goes blank after the login has succeeded. Looking at the logs it seems to be redirecting but i’m assuming the redirect won’t do anything on a mobile app?

Has anybody else managed to use the ionic-contrib-firebase-login seed to build an iOS Firebase app? Would appreciate some pointers if you have!


#2

A simple search should get you some examples.


#3

Thanks, searching the forums was my first port of call and did find some useful information as you have suggested.

However (apologies!), I missed a vital component out of the initial post - I am trying to authenticate using the google auth option. When I log in using email/password it works fine but if i try via oAuth then google redirects to the firebase callback and this results in me seeing blank page. If I run the app in the browser it works as it honours the redirect but when I do it from the iOS emulator I assume the redirect does not work. has anybody managed to get an oAuth authentication to work in the iOS emulator?


#4

Have you tried doing this in the inappbrowser?

Or check this

I don’t have much experience with OAuth login so I’m not sure how much help I can be


#5

Thanks, will continue to dig. I suppose I was just wondering if anybody else had used the githib seed for this as I don’t see how the seed could work for anybody as it currently is. Will continue to dig around.