Problem with android versions

1

I have a problem with my webapp because I was using a test terminal with android version 4.1.2 and now when testing in a terminal with android version 5.1.1 it does not allow me to click on an input type text that had created to enter a code.

In addition to that, the function I had created to show a warning message does not work either. Would there be any way to update phonegap to a higher version? Or could it be the fault of a plugin that was outdated?

    
asked by Dridrii 19.07.2016 в 16:39
source

1 answer

1
  

Before making any of the changes listed below, I would recommend that you make a backup copy of the directory where you have your web app with phonegap / cordova.

If what you want to do is update phonegap, from the command line you should do:

npm update -g phonegap

(You may need to put sudo in front of Linux / Mac terminals).

Once phonegap is updated, to update your web app you must go to its directory and update the version of the platform used (in this case android). Again, from the command line it would be something like this:

cd ruta/a/tu/webapp

phonegap platform update android

Finally if you want to update a plugin, cordova does not include a plugin update command directly, what you can do is check the version you have installed, check the online version and update if they are different.

It is easier to directly delete the plugin and reinstall it, something that would be done like this (from the directory of your web app):

cordova plugin rm <nombre-del-plugin>
cordova plugin add <nombre-del-plugin>
    
answered by 19.07.2016 в 17:04