AngularFire2-Ionic2-Facebook icon indicating copy to clipboard operation
AngularFire2-Ionic2-Facebook copied to clipboard

Infos + feature request.

Open numerized opened this issue 9 years ago • 4 comments

Working great, people need to edit their package.json though

"cordovaPlugins": [
    "cordova-plugin-device",
    "cordova-plugin-console",
    "cordova-plugin-whitelist",
    "cordova-plugin-splashscreen",
    "cordova-plugin-statusbar",
    "ionic-plugin-keyboard",
    {
      "id": "cordova-plugin-facebook4",
      "locator": "cordova-plugin-facebook4",
      "variables": {
        "APP_ID": "[YOUR APP ID]",
        "APP_NAME": "[YOUR APP NAME]"
      }
    }

Would it be possible to add a fallback Facebook login method for people login from Webpage ? Thanks

numerized avatar Jul 17 '16 22:07 numerized

do you mean make it work with ionic serve ?

aaronksaunders avatar Jul 17 '16 22:07 aaronksaunders

exactly, I've found how, it's so simple

doWebFacebookLogin() { 
    this.af.auth.login({
      provider: AuthProviders.Facebook,
      method: AuthMethods.Popup,
    });

numerized avatar Jul 17 '16 23:07 numerized

I've found that using ionic is actually perfect to follow my code once deploy everywhere customer's strategy, so I need this type of fallback.

numerized avatar Jul 17 '16 23:07 numerized

Another nice feature I'd like to see meanwhile angularFire2 is debugged is the possibility to reuse the Firebase Auth token after closing and reopening the app. AngularFire was able to keep users logged in even after app closing and reopening.

numerized avatar Jul 17 '16 23:07 numerized