diff --git a/js/controllers/more.js b/js/controllers/more.js index f271ce7e6..6a502c174 100644 --- a/js/controllers/more.js +++ b/js/controllers/more.js @@ -155,6 +155,7 @@ angular.module('copayApp.controllers').controller('MoreController', }; $scope.sendWalletBackup = function() { + window.ignoreMobilePause = true; window.plugins.toast.showShortCenter('Preparing backup...'); var name = (w.name || w.id); var ew = backupService.walletEncrypted(w); diff --git a/js/controllers/profile.js b/js/controllers/profile.js index 52bc5149b..d73d32d9e 100644 --- a/js/controllers/profile.js +++ b/js/controllers/profile.js @@ -25,6 +25,7 @@ angular.module('copayApp.controllers').controller('ProfileController', function( }; $scope.sendProfileBackup = function() { + window.ignoreMobilePause = true; window.plugins.toast.showShortCenter('Preparing backup...'); var name = $rootScope.iden.fullName; var ep = backupService.profileEncrypted($rootScope.iden); diff --git a/js/controllers/receive.js b/js/controllers/receive.js index a8bd07a20..8fb8333f3 100644 --- a/js/controllers/receive.js +++ b/js/controllers/receive.js @@ -19,7 +19,8 @@ angular.module('copayApp.controllers').controller('ReceiveController', $scope.shareAddress = function(addr) { if (isCordova) { - window.plugins.socialsharing.share('My bitcoin address: ' + addr); + window.ignoreMobilePause = true; + window.plugins.socialsharing.share('My bitcoin address: ' + addr, null, null, null); } }; diff --git a/js/init.js b/js/init.js index d6677d3a8..b64bef7db 100644 --- a/js/init.js +++ b/js/init.js @@ -16,6 +16,12 @@ angular.element(document).ready(function() { window.location = '#!/signout'; } }, false); + + document.addEventListener('resume', function() { + setTimeout(function() { + window.ignoreMobilePause = false; + }, 100); + }, false); document.addEventListener('backbutton', function() { window.location = '#!/homeWallet';