update access denied exceptions
This commit is contained in:
parent
294281602e
commit
ad38cf4783
17 changed files with 154 additions and 138 deletions
9
dashboard-ui/cordova/ios/backgroundfetch.js
vendored
9
dashboard-ui/cordova/ios/backgroundfetch.js
vendored
|
@ -7,7 +7,7 @@
|
|||
var fetcher = window.BackgroundFetch;
|
||||
|
||||
fetcher.configure(onBackgroundFetch, onBackgroundFetchFailed, {
|
||||
stopOnTerminate: true // <-- false is default
|
||||
stopOnTerminate: false // <-- false is default
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -55,7 +55,7 @@
|
|||
Logger.log('- BackgroundFetch failed');
|
||||
}
|
||||
|
||||
var syncInterval = 1800000;
|
||||
var syncInterval = 3600000;
|
||||
|
||||
function restartInterval() {
|
||||
|
||||
|
@ -65,11 +65,12 @@
|
|||
|
||||
}, syncInterval);
|
||||
|
||||
if (lastStart > 0 && (now - lastStart) >= syncInterval) {
|
||||
if (lastStart > 0 && (new Date().getTime() - lastStart) >= syncInterval) {
|
||||
|
||||
setTimeout(function () {
|
||||
startSync();
|
||||
}, 3000);
|
||||
|
||||
}, 5000);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
11
dashboard-ui/cordova/ios/tabbar.js
vendored
11
dashboard-ui/cordova/ios/tabbar.js
vendored
|
@ -98,13 +98,20 @@
|
|||
TabBar.show();
|
||||
}
|
||||
|
||||
var isFirstHide = true;
|
||||
function hideTabs() {
|
||||
|
||||
if (!initComplete) {
|
||||
return;
|
||||
}
|
||||
|
||||
TabBar.hide();
|
||||
var hide = function () { TabBar.hide(); };
|
||||
if (isFirstHide) {
|
||||
isFirstHide = false;
|
||||
setTimeout(hide, 1000);
|
||||
} else {
|
||||
hide();
|
||||
}
|
||||
}
|
||||
|
||||
Dashboard.ready(function () {
|
||||
|
@ -113,7 +120,7 @@
|
|||
|
||||
Events.on(ConnectionManager, 'localusersignedin', showTabs);
|
||||
Events.on(ConnectionManager, 'localusersignedout', hideTabs);
|
||||
Events.on(MediaController, 'playbackstart', onPlaybackStart);
|
||||
Events.on(MediaController, 'beforeplaybackstart', onPlaybackStart);
|
||||
Events.on(MediaController, 'playbackstop', onPlaybackStop);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue