119
Views
6
Comments
Cordova is not available

Hi all,

I am developing a mobile application and when I do the "Open in browser" from service studio on my MacBook Pro, the emulator stops with the message "Cordova is not available".

This seems to happen only on on Mac not on Windows computer. Is there any option I need to activate or something to install on my mac?

Thanks


Screenshot 2024-03-14 at 09.56.04.png
2021-06-02 20-50-04
Márcio Carvalho

That happens because you are opening on browser. Cordova is only available when opening the app on mobile! :)

Also, do not forget (in the future) to generate an app every time you insert a in a new plugin, just in case.

You have more info here (and in the guided paths for mobile) https://success.outsystems.com/documentation/11/extensibility_and_integration/mobile_plugins/using_cordova_plugins/

Kind Regards,

Márcio

UserImage.jpg
Mohd Wasim Shaikh

This error shows even in mobile app. Any solution to this? Also, I have generated new build.

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

If you install on an iPhone, make sure to first remove the app from the phone and then install the new build.

UserImage.jpg
Mohd Wasim Shaikh

Yes I installed the new build on iPhone after uninstalling the old app.

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi,

The logic that displays this message might be coded incorrectly.

It is IF statement, make sure the True and False branch are correct.

- Daniel

UserImage.jpg
Mohd Wasim Shaikh

Hi Daniel,

I think the plugin (App Availability) which I am using is throwing that error. 

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