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
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.
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:
Due to this error, the app is not getting rendered successfully:
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:
[X] I have starred the repo ⭐ and watched 👀 it on GitHub and followed the contribution guidelines.
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
permission_handler: git: url: https://github.com/bvoq/flutter-permission-handler.git path: permission_handler ref: master
instead ofpermission_handler: ^10.2.0
in pubspec.yaml file.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:
Due to this error, the app is not getting rendered successfully:
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: