30
Views
2
Comments
Solved
[PreventSS] Cannot read properties of undefined
Question
preventss-oml
Mobile icon
Forge asset by Raphael Ranieri
Application Type
Mobile

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?

2020-11-10 23-58-16
Raphael Ranieri
 
MVP
Solution

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 :)

2023-04-18 18-18-30
Murilo Antonio de Souza

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

2020-11-10 23-58-16
Raphael Ranieri
 
MVP
Solution

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 :)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.