Skip to content

Commit

Permalink
v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitxsh committed May 15, 2021
1 parent b20c81f commit a62a2ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/home/home.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,12 +353,12 @@ export class HomePage implements OnInit {
});

//background task configuration
this.backgroundMode.on('enable').subscribe(() => {
this.bgEnableSub = this.backgroundMode.on('enable').subscribe(() => {
this.serviceTask = setInterval(function(){
scopeOfThis.alertService();
}, (this.updateInterval*60*1000));
});
this.backgroundMode.on('activate').subscribe(() => {
this.bgActivateSub = this.backgroundMode.on('activate').subscribe(() => {
//Turn screen on
// this.backgroundMode.wakeUp();
// disableWebViewOptimizations is crashing the app if plugin is installed from https://github.com/katzer/cordova-plugin-background-mode
Expand Down

0 comments on commit a62a2ad

Please sign in to comment.