roughike / flutter_facebook_login

A Flutter plugin for allowing users to authenticate with native Android & iOS Facebook login SDKs.
BSD 2-Clause "Simplified" License
405 stars 331 forks source link

Plugin doesn't work with new flutter release 1.12.13 Hotfix 5 (build failed) #224

Open darasat opened 4 years ago

darasat commented 4 years ago

Good day,

First this plugin it´s amazing.

But with a new version of flutter (1.12)

The plugin flutter_facebook_login build fails

The plugin doesn't work anymore in the new flutter release (1.12.13 Hotfix 5)

I tested different Versions (1.1.1, 2.0.0, 3.0.0)

See pub dart state https://travis-ci.org/roughike/flutter_facebook_login

I changed the pubspec.yaml and get the packages but this behaviour does not disappear

I tested with gradle (3.5.3, 3.5.2, 3.5.0) and gradle wrapper (5.6)

what could it be the problem?

This plugin it's breaking my app

thank you!

rphlmr commented 4 years ago

Hi,

On your main.dart, main method, do you have : WidgetsFlutterBinding.ensureInitialized(); on the first line ?

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(
   ....
  );
}

I'm just starting with this plugin, and it's working fine (in debug, not tested in release).

kleyos commented 4 years ago

On your main.dart, main method, do you have : WidgetsFlutterBinding.ensureInitialized(); on the first line ?

I have this one. Do you use firebase in your app? because for me facebook crases my app either.

kleyos commented 4 years ago

I'm just starting with this plugin, and it's working fine (in debug, not tested in release).

And yes. My app is crashed in release mode

rphlmr commented 4 years ago

Yes I'm using firebase with it (and google auth). It compiles and works on ios 13 debug and release. I have to admit that i didn't test it on android. I will check asap.

Maybe not related but you can look at https://github.com/roughike/flutter_facebook_login/issues/222

niypoo commented 4 years ago

I have same issue my app build not compete and app crash test on android

Lost connection to device.
Exited (sigterm)

, but when remove the package from pubspec.yaml , my app return work again that happend only upgrade flutter to 1.12

darasat commented 4 years ago

The problem it's related to

https://github.com/flutter/flutter/issues/47072