|
|
@@ -91,9 +91,6 @@ if (query.invitor) {
|
|
|
}
|
|
|
|
|
|
if (window.cordova) {
|
|
|
- let displayMessage = function (message) {
|
|
|
- navigator.notification.alert(message, null, 'CodePush', 'OK');
|
|
|
- };
|
|
|
document.addEventListener(
|
|
|
'deviceready',
|
|
|
function () {
|
|
|
@@ -102,18 +99,18 @@ if (window.cordova) {
|
|
|
switch (syncStatus) {
|
|
|
// Result (final) statuses
|
|
|
case SyncStatus.UPDATE_INSTALLED:
|
|
|
- displayMessage(
|
|
|
+ console.log(
|
|
|
'The update was installed successfully. For InstallMode.ON_NEXT_RESTART, the changes will be visible after application restart. '
|
|
|
);
|
|
|
break;
|
|
|
case SyncStatus.UP_TO_DATE:
|
|
|
- displayMessage('The application is up to date.');
|
|
|
+ console.log('The application is up to date.');
|
|
|
break;
|
|
|
case SyncStatus.UPDATE_IGNORED:
|
|
|
- displayMessage('The user decided not to install the optional update.');
|
|
|
+ console.log('The user decided not to install the optional update.');
|
|
|
break;
|
|
|
case SyncStatus.ERROR:
|
|
|
- displayMessage('An error occured while checking for updates');
|
|
|
+ console.log('An error occured while checking for updates');
|
|
|
break;
|
|
|
|
|
|
// Intermediate (non final) statuses
|
|
|
@@ -133,7 +130,7 @@ if (window.cordova) {
|
|
|
},
|
|
|
{
|
|
|
installMode: InstallMode.IMMEDIATE,
|
|
|
- updateDialog: true
|
|
|
+ updateDialog: false
|
|
|
},
|
|
|
function (downloadProgress) {
|
|
|
console.log(
|