Skip to content

Commit

Permalink
plugin: update sample project for new pause API
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimecbernardo committed Jun 7, 2018
1 parent 3cf9b28 commit bdd9506
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install/sample-project/www/nodejs-project/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ cordova.channel.on('myevent', (msg) => {
// Handle the 'pause' and 'resume' events.
// These are events raised automatically when the app switched to the
// background/foreground.
cordova.app.on('pause', () => {
cordova.app.on('pause', (pauseLock) => {
console.log('[node] app paused.');
pauseLock.release();
});

cordova.app.on('resume', () => {
Expand Down

0 comments on commit bdd9506

Please sign in to comment.