extended_image icon indicating copy to clipboard operation
extended_image copied to clipboard

MissingPluginException(No implementation found for method getTemporaryDirectory on channel plugins.flutter.io/path_provider)

Open itssidhere opened this issue 2 years ago • 0 comments

I am trying to use extended_image in my onBackgroundHandler of firebase_messaging like

 await getNetworkImageData(url, useCache: true);
    final cacheFlie = (await getCachedImageFile(url));
    return cacheFlie;

I get this error - MissingPluginException(No implementation found for method getTemporaryDirectory on channel plugins.flutter.io/path_provider)

I have fixed this earlier by adding this to my Application.java

public class Application extends FlutterApplication implements PluginRegistrantCallback {
  @Override
  public void onCreate() {
    super.onCreate();
    // FlutterFirebaseMessagingService.setPluginRegistrant(this);
  }

  @Override
  public void registerWith(PluginRegistry registry) {
    // FlutterFirebaseMessagingPlugin.registerWith(registry.registrarFor("io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingPlugin"));

    io.flutter.plugins.pathprovider.PathProviderPlugin.registerWith(registry.registrarFor("io.flutter.plugins.pathprovider.PathProviderPlugin")); 
    com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.registerWith(registry.registrarFor("com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin"));
  }
}

But it has started to show this again.

itssidhere avatar Mar 08 '22 06:03 itssidhere

it seems that it not base on this package

zmtzawqlp avatar Sep 01 '22 08:09 zmtzawqlp