always switch enable for android devices

This commit is contained in:
Gabriel Bazán 2016-03-31 11:33:59 -04:00
commit 86f151de83
2 changed files with 4 additions and 2 deletions

View file

@ -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;
});