Clancey / simple_auth

The Simplest way to Authenticate in Flutter
MIT License
352 stars 108 forks source link

Facebook: Failed assertion: boolean expression must not be null #102

Open PatrickJongmans opened 5 years ago

PatrickJongmans commented 5 years ago

Everything is going well with the Facebook auth, only on return I get the message: Failed assertion: boolean expression must not be null

I added the git version as well:

simple_auth_flutter: git: url: https://github.com/Clancey/simple_auth.git path: simple_auth_flutter

But the results stay the same. Any ideas?

viplike commented 4 years ago

@PatrickJongmans, hello man, have you solved this issue?

viplike commented 4 years ago

I've found the issue:

class FacebookApi extends OAuthApi { static bool isUsingNative; // should be => static bool isUsingNative = true;

vedangdate commented 4 years ago

@viplike Hey! I tried this but it's still showing the same error. Also, this trial was on the example app which isn't working. Is Facebook auth working for you?

viplike commented 4 years ago

@viplike Hey! I tried this but it's still showing the same error. Also, this trial was on the example app which isn't working. Is Facebook auth working for you?

hello, I've refused this extension and made auth process via website using flutterWebViewPlugin, both for: facebook, google, linkedin. And if you want to deploy the app to the app store (ios), then you need also to make apple sign in integration.