You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ionic] code in loginController
$scope.checkUpdate = function () {
var fs = new CordovaPromiseFS({
persistent: typeof $window.cordova !== 'undefined',
Promise: $q
});
// Initialize a CordovaAppLoader
var loader = new CordovaAppLoader({
fs: fs,
serverRoot: $rootScope.baseSourceUrl + '/pcberpapp/www/',
localRoot: 'app',
cacheBuster: true, // make sure we're not downloading cached files.
checkTimeout: 10000 // timeout for the "check" function - when you loose internet connection
});
loader.check().then(function (updateAvailable) {
if (updateAvailable)
{
loader.download(onProgress)
.then(
function (manifest)
{
console.log(manifest);
loader.update();
$scope.doLogin();
},
function (failedDownloadUrlArray)
{
console.log(failedDownloadUrlArray);
}
)
}else {
$scope.doLogin();
}
});
};
login.html in manifest.json
I change login.js and update manifest on serve
Please hele me!
The text was updated successfully, but these errors were encountered:
Hi @markmarijnissen
3.Android check and download ok, but not update
[ionic] code in loginController
$scope.checkUpdate = function () {
var fs = new CordovaPromiseFS({
persistent: typeof $window.cordova !== 'undefined',
Promise: $q
});
};
Please hele me!
The text was updated successfully, but these errors were encountered: