You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Functions isSupported, isTorchAvailable, isGoogleBarcodeScannerModuleAvailable that check if functionality is available should just return false if it is not supported or not available, instead of throwing a Capacitor exception.
Thank you for creating this request. It's common to throw an exception if a method is not available on a specific platform. You can just wrap that call in a try-catch. No need to patch/fork the plugin. I'm therefore closing this issue as not planned.
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
@capacitor-mlkit/[email protected]
for the project I'm working on.Functions isSupported, isTorchAvailable, isGoogleBarcodeScannerModuleAvailable that check if functionality is available should just return false if it is not supported or not available, instead of throwing a Capacitor exception.
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: