CCExtractor / taskwarrior-flutter

This is the repo of mobile app of taskwarrior
https://play.google.com/store/apps/details?id=com.ccextractor.taskwarriorflutter
GNU General Public License v3.0
103 stars 86 forks source link

Bug: MissingPluginException for Permission Status Check on macOS Installation #335

Closed oops-shlok closed 4 months ago

oops-shlok commented 4 months ago

Describe your issue

Encountered a MissingPluginException error during Flutter macOS application build, specifically for the method checkPermissionStatus on channel flutter.baseflow.com/permissions/methods. This leads to app not getting successfully rendered for macOS build. Can be resolved by registering PathProviderPlugin in GeneratedPluginRegistrant.swift. Issue arises due to unregistered plugin, impacting permission handling functionality.

Steps to reproduce

  1. Using permission_handler: git: url: https://github.com/bvoq/flutter-permission-handler.git path: permission_handler ref: master instead of permission_handler: ^10.2.0 in pubspec.yaml file.
  2. Adding the following line of code to register the PathProviderPlugin in the GeneratedPluginRegistrant.swift file in macos flutter directory: PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))

What was the expected result?

The application should build and run without encountering the MissingPluginException for macOS.

Put here any screenshots or videos (optional)

Here is the screenshot of the error on console:

Screenshot 2024-03-15 at 1 31 03 AM

Due to this error, the app is not getting rendered successfully:

Screenshot 2024-03-15 at 1 31 41 AM

How can we contact you (optional)

No response

Would you like to work on this issue?

Yes

By submitting this issue, I have confirmed that: