I'm getting the error "cordova is not defined" when running our mobile application in our dev environment. How do I work around this issue?

Thanks

Hi Lorenzo,

Are you running the mobile app in the Previewer on your computer? Then there is no Cordova.

You will need to install and run the app on your mobile device for Cordova plugins to use.

If you have an Android phone you can also use OutSystems Now to test your application on your phone without installing it, but only a limited set of Cordova plugins are supported by OutSystemsNow. If you use a plugin that is not supported you still need to install the app on your phone to test it. 

Regards,

Daniel

Daniël Kuhlmann wrote:

Hi Lorenzo,

Are you running the mobile app in the Previewer on your computer? Then there is no Cordova.

You will need to install and run the app on your mobile device for Cordova plugins to use.

If you have an Android phone you can also use OutSystems Now to test your application on your phone without installing it, but only a limited set of Cordova plugins are supported by OutSystemsNow. If you use a plugin that is not supported you still need to install the app on your phone to test it. 

Regards,

Daniel

 Thanks for the reply and yes, I was trying to run in the browser. I'm trying now to debug on an Android device. But, the problem I've run into now, is that when I try to install the app using the QR code, it fails. It tries to install the application from our development server. That would ordinarily work just fine if I were in the office, but due to covid-19, we're working remotely and that device has no access to the company network. 


If anyone has any ideas on to workaround that, I'd really appreciate it.

Lorenzo Thurman wrote:

Daniël Kuhlmann wrote:

Hi Lorenzo,....

 Thanks for the reply and yes, I was trying to run in the browser. I'm trying now to debug on an Android device. But, the problem I've run into now, is that when I try to install the app using the QR code, it fails. It tries to install the application from our development server. That would ordinarily work just fine if I were in the office, but due to covid-19, we're working remotely and that device has no access to the company network. 


If anyone has any ideas on to workaround that, I'd really appreciate it.

Hi,

You ask a new question now, but also asked it in another post, which is the correct thing to do.

But don't ask it here again, or at least refer to the other post by including a link. That way community can  more efficiently help you.

Regards,

Daniel