Example #1
0
 updates.available.subscribe(event => {
     if (prompt('Update available for this app. Do you want to update it?')) {
         updates.activateUpdate().then(() => document.location.reload());
     }
 });
 interval(6 * 60 * 60).subscribe(() => updates.checkForUpdate());
Example #3
0
 interval(10000).subscribe(() => updates.checkForUpdate());
 everySixHoursOnceAppIsStable$.subscribe(() => updates.checkForUpdate());
 updates.available.subscribe(event => {
   if (promptUser(event)) {
     updates.activateUpdate().then(() => document.location.reload());
   }
 });
Example #6
0
 check_now()
 {
   this.updates.checkForUpdate();
 }
Example #7
0
 ref.onAction().subscribe(() => {
   updates.activateUpdate().then(() => document.location.reload());
 });