Commit 99928e3f authored by Eric Seigne's avatar Eric Seigne
Browse files

version 1.0.15: ajout du lien direct pour mise à jour lors du lancement

parent fb5735d8
<?xml version='1.0' encoding='utf-8'?>
<widget id="fr.caprel.doliscan" version="1.0.14" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="fr.caprel.doliscan" version="1.0.15" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>doliscan</name>
<description>
A simple app for french people looking for a free and self hosting "notes de frais/expenses report" solution.
......@@ -51,7 +51,7 @@
<edit-config file="*-Info.plist" mode="merge" target="NSPhotoLibraryAddUsageDescription">
<string>Please pick a pictures of your invoice / receipt</string>
</edit-config>
<preference name="OverrideUserAgent" value="Mozilla/5.0 OpenNDF/1.0.14 iOS" />
<preference name="OverrideUserAgent" value="Mozilla/5.0 OpenNDF/1.0.15 Android" />
<plugin name="cordova-plugin-inappbrowser" spec="^3.0.0" />
<plugin name="cordova-plugin-whitelist" spec="^1.3.4" />
</widget>
......@@ -190,8 +190,16 @@
if (typeof result.data !== 'undefined') {
// myDebug("loginWithAPIToken : result.data ok, on compare " + globalCompatibleWithAPIVersion + " et " + result.data.api_version);
if (result.data.api_version == globalCompatibleWithAPIVersion) {
// myDebug("API Token tout est ok on bascule sur app.html");
updateLocalUserFromServer(result, updateLocalUserFromServerSuccess);
if (result.data.app_version == globalAppVersion) {
// myDebug("API Token tout est ok on bascule sur app.html");
updateLocalUserFromServer(result, updateLocalUserFromServerSuccess);
}
else {
//Une nouvelle version existe on informe l'utilisateur sans le bloquer
$("#messagePopupMessage").replaceWith(result.data.app_version_message);
$("#messagePopup").show();
// updateLocalUserFromServer(result, updateLocalUserFromServerSuccess);
}
}
else {
//Si on a un message specifique du serveur (genre api trop vieille) on l'affiche
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment