From 86f151de830b05d10049396372d1b268e96c1f10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Thu, 31 Mar 2016 11:33:59 -0400 Subject: [PATCH] always switch enable for android devices --- public/views/preferencesGlobal.html | 2 +- src/js/controllers/preferencesGlobal.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/public/views/preferencesGlobal.html b/public/views/preferencesGlobal.html index 6b02229c7..fd296396c 100644 --- a/public/views/preferencesGlobal.html +++ b/public/views/preferencesGlobal.html @@ -78,7 +78,7 @@
About Copay
-
+
Push notifications for Copay are currently disabled. Enable them in the Settings app.
  • Open Settings app
  • diff --git a/src/js/controllers/preferencesGlobal.js b/src/js/controllers/preferencesGlobal.js index d6b0634ee..8cedfe62b 100644 --- a/src/js/controllers/preferencesGlobal.js +++ b/src/js/controllers/preferencesGlobal.js @@ -14,7 +14,9 @@ angular.module('copayApp.controllers').controller('preferencesGlobalController', this.feeOpts = feeService.feeOpts; this.currentFeeLevel = feeService.getCurrentFeeLevel(); this.usePushNotifications = isCordova && !isMobile.Windows(); - if (!typeof cordova.plugins.diagnostic != undefined && isMobile.iOS()) { + $scope.PNEnabledByUser = true; + $scope.isIOS = isMobile.iOS(); + if (!typeof cordova.plugins.diagnostic != undefined && $scope.isIOS) { cordova.plugins.diagnostic.isRemoteNotificationsEnabled(function(isEnabled) { $scope.PNEnabledByUser = isEnabled; });