Home > Net >  PDA automatic updates
PDA automatic updates

Time:04-07

Company production with MES, framework in addition to the web and mobile code, mobile code development mainly in js write page, and then call API, API is published to the server, each time there is a change, all need to generate the apk and then connected with a computer PDA renewal, PDA quantity more now, is there any method can realize automatic updates, such as after the release of the apk specified location on the server, and then change a config file version number in it, and then a PDA login every time how can access to the server version number, and then download the apk, cover before,
Ps: Java is not very will, framework is mvc+asp.net

CodePudding user response:

With the android development before,
Essentially, actually is to visit an apk file, and then to download,
Just update, need you to code implementation, namely through the version number compare,
https://blog.csdn.net/hanjun0612/article/details/79355919

CodePudding user response:

In a train of thought:
PDA embedded inside a webview, the update directly change the web page,

If the first is packaged into apk, reference winform should be attainable, namely after the match the version number to download the installation package to open a new process update,

CodePudding user response:

Portal

This is just to find can meet the needs of your current

CodePudding user response:

According to the above the tip of the need to pay attention to the current version of the android if greater than 8 you will need to open the corresponding permissions

CodePudding user response:

 
//compare the current version number and the server version are consistent
Var deviceId_server=' ';
INF. Httpget (config. Webapi + "INF/adms/user/version", {}, function (data) {
If (data) {
DeviceId_server=data. The data;
Var deviceId_local=window. Lrmui. Storage. Get (' App_Version ');
if (! DeviceId_local | | deviceId_server!=deviceId_local) {//if is empty or inconsistent and server version update tip
INF. Layer. Confirm (' found update file, whether to update? ', function (_index) {
If (_index==0) {
//update

}
If (_index==1) {
INF. TAB. Go (' workspace ');
}
} 'tip' [' now update ', 'update later']);
}
The else {
$(' # account). Val (");
$(' # password). Val (");
INF. TAB. Go (' workspace ');
}
}
The else {
ClientAsyncData. User. States=loadSate. Fail;
}
});
now login in js wrote a judge the current version, don't know how to download the server c # apk to PDA
  • Related