capacitor-community / file-opener

Capacitor File Opener. The plugin is able to open a file given the mimeType and the file uri. This plugin is similar to cordova-plugin-file-opener2 without installation support.
MIT License
67 stars 13 forks source link

Enable checking parameters passed to open method #46

Open ryaa opened 1 year ago

ryaa commented 1 year ago

Is your feature request related to a problem? Please describe. The plugin crashes if no required param(s) are provided - see https://github.com/capacitor-community/file-opener/issues/44#issuecomment-1647286292

Describe the solution you'd like Add param check in the open method and return an error informing about missing required param and avoid plugin/app crash

Describe alternatives you've considered N/A

Additional context See https://github.com/capacitor-community/file-opener/issues/44