always switch enable for android devices
This commit is contained in:
parent
0c53e52015
commit
86f151de83
2 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue