darwin-morocho / flutter-facebook-auth

A flutter plugin to add login with facebook in your flutter app
193 stars 127 forks source link

MissingPluginException(No implementation found for method login on channel app.meedu/flutter_facebook_auth) #48

Closed phuhungtran closed 3 years ago

phuhungtran commented 3 years ago

I followed Android set up on pub but this error still happen on Android device. It works fine on iOS.

darwin-morocho commented 3 years ago

I followed Android set up on pub but this error still happen on Android device. It works fine on iOS.

Have you tried run flutter clean?

darwin-morocho commented 3 years ago

I followed Android set up on pub but this error still happen on Android device. It works fine on iOS.

Have you tried run flutter clean?

If the error persists maybe your android configuration is wrong. Please check the next example to see a good configuration https://github.com/meedu-app/flutter-facebook-login-example/tree/firebase_auth

phuhungtran commented 3 years ago

I followed Android set up on pub but this error still happen on Android device. It works fine on iOS.

Have you tried run flutter clean?

If the error persists maybe your android configuration is wrong. Please check the next example to see a good configuration https://github.com/meedu-app/flutter-facebook-login-example/tree/firebase_auth

I'm using classpath 'com.android.tools.build:gradle:4.0.1' and can not build the app if I change it to classpath 'com.android.tools.build:gradle:3.5.0' like your example. It told "The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility."

darwin-morocho commented 3 years ago

The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.

https://stackoverflow.com/questions/56539737/how-to-fix-flutter-androidx-incompatibility

Also please add your pubspec.yaml, flutter doctor -v, AndroidManifest.xml, android/build.gradle and your MainActivity

ZaifSenpai commented 3 years ago

Many developers are having issue due to this plugin. Please checkout the following issue. The solution is simply to remove this facebook login issue flutter-permission-handler #308

darwin-morocho commented 3 years ago

Many developers are having issue due to this plugin. Please checkout the following issue. The solution is simply to remove this facebook login issue flutter-permission-handler #308

This is a problem of the Facebook sdk on Android. If you don't configure the plugin before run the app flutter cannot find the others plugins because the Facebook sdk will try to find the configuration.

darwin-morocho commented 3 years ago

@ZaifSenpai I've been created a new flutter project to reproduce the issue

pubspec.yaml

dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^1.0.0
  flutter_facebook_auth: ^2.0.2+1
  permission_handler: ^5.1.0+2

And if I use the next code before configure the facebook sdk on Android

  void _requestPermission() async {
    final status = await Permission.storage.request();
    print(status);
  }

I will have the next error

Unhandled Exception: MissingPluginException(No implementation found for method requestPermissions on channel flutter.baseflow.com/permissions/methods)

Now I've been configured the facebook SDK on Android and run the project again and everything works.

aniketsongara commented 3 years ago

@ZaifSenpai I've been created a new flutter project to reproduce the issue

pubspec.yaml

dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^1.0.0
  flutter_facebook_auth: ^2.0.2+1
  permission_handler: ^5.1.0+2

And if I use the next code before configure the facebook sdk on Android

  void _requestPermission() async {
    final status = await Permission.storage.request();
    print(status);
  }

I will have the next error

Unhandled Exception: MissingPluginException(No implementation found for method requestPermissions on channel flutter.baseflow.com/permissions/methods)

Now I've been configured the facebook SDK on Android and run the project again and everything works.

Having same issue in release mode of the app with

pubspec.yaml

dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^1.0.2
  file_picker: ^2.1.6
  permission_handler: ^5.1.0+2

Please help me out from this issue

Faisalkc4u commented 3 years ago

I also get the same error when I use both 'permission_handler' and 'flutter_facebook_auth'. After removing flutter_facebook_auth it's working fine

darwin-morocho commented 3 years ago

I also get the same error when I use both 'permission_handler' and 'flutter_facebook_auth'. After removing flutter_facebook_auth it's working fine

@Faisalkc4u please read the documentation before use the plugin.

https://github.com/darwin-morocho/flutter-facebook-auth/tree/master/facebook_auth#-important-

image

darwin-morocho commented 3 years ago

closed by inactivity

FaizanAhmad127 commented 3 years ago

Read the documentation https://facebook.meedu.app/#/

TanvirMahin24 commented 2 years ago

I solved my issue by doing the configuration. https://facebook.meedu.app/#/android checkout the documentation for the full configuration details. Please flutter clean before starting the app.

RameshMJ23 commented 1 year ago

@ZaifSenpai I've been created a new flutter project to reproduce the issue

pubspec.yaml

dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^1.0.0
  flutter_facebook_auth: ^2.0.2+1
  permission_handler: ^5.1.0+2

And if I use the next code before configure the facebook sdk on Android

  void _requestPermission() async {
    final status = await Permission.storage.request();
    print(status);
  }

I will have the next error

Unhandled Exception: MissingPluginException(No implementation found for method requestPermissions on channel flutter.baseflow.com/permissions/methods)

Now I've been configured the facebook SDK on Android and run the project again and everything works.

What is configuring Facebook SDK (It is also in your documentation) ?

darwin-morocho commented 1 year ago

@RameshMJ23 you have an explanation here https://facebook.meedu.app/#/android

RameshMJ23 commented 1 year ago

@RameshMJ23 you have an explanation here https://facebook.meedu.app/#/android

Thanks for your quick response @darwin-morocho, I configured the android SDK(even tried changing it) but I am unsure of "Facebook SDK"