ThexXTURBOXx / catcher_2

Flutter error catching & handling plugin. Handles and reports exceptions in your app!
https://pub.dev/packages/catcher_2
Apache License 2.0
23 stars 26 forks source link

[Bug]: <MissingPluginException> #15

Closed mrdyman closed 1 year ago

mrdyman commented 1 year ago

Description

Can't get App Info when using new Version, it's works when using version 1.0.0

Minimal Reproduction

Steps to reproduce the behaviour:

  1. Use the following code:

    String path = "/storage/emulated/0/error-log.json";
    Catcher2Options debugOptions =
    Catcher2Options(SilentReportMode(), [ConsoleHandler()]);
    
    Catcher2Options releaseOptions = Catcher2Options(
    SilentReportMode(),
    [
      FileHandler(File(path)),
      HttpHandler(
        requestTimeout: const Duration(minutes: 1),
        responseTimeout: const Duration(minutes: 1),
        HttpRequestType.post,
        Uri.parse(
            "https://my-link-to-report.com"),
        enableCustomParameters: true,
      )
    ],
    customParameters: {"myCustomParams": "MyCustomParamsValue"},
    );
    
    Catcher2(
      rootWidget: MyApp(),
      debugConfig: debugOptions,
      releaseConfig: releaseOptions);

Exception or Error

Couldn't load application info due to error: MissingPluginException(No implementation found for method getAll on channel dev.fluttercommunity.plus/package_info)

Expected Behaviour

-

Screenshots

No response

Additional context

No response

Device

Emulator

OS

Android

Flutter version

3.13.9

catcher_2 version

1.0.4

Checklist

ThexXTURBOXx commented 1 year ago

This is definitely an issue with package_info_plus and not this package. Please report this to them instead.

mrdyman commented 1 year ago

my bad, i fix that by running flutter clean and then flutter pub get