I added this component to my app and realized that is necessary to generate a new build, for android and iOS. If I don't generate new builds, my app will throw two erros: Cannot read properties of undefined (reading 'disable') and Cannot read properties of undefined (reading 'enable').
How can I avoid those erros while my new build not being available on apps store, and more, how can I avoid those erros while my users not update their app?
Hello @Gabriel Melo,Thanks for bringing this up.When I did this component I published it in a hurry to make it available for another member and I might have forgotten to add an action to check for the availability.I just uploaded a new version of the component with an action that can be used to check if the plugin is availbale before calling the actions, like Murilo suggested.So if you upgrade it you should be able to fix your problem.
I also uploaded a new sample module using this action so you can know how to use it.Let me know if it works for you,
Cheers,
RR :)
Hi Gabriel Melo
If the plugin does not have the "CheckPlugin" function, set to activate or deactivate this functionality via site property after the application is available in stores.
Best regards,Murilo Antonio