always switch enable for android devices
This commit is contained in:
parent
0c53e52015
commit
86f151de83
2 changed files with 4 additions and 2 deletions
|
|
@ -78,7 +78,7 @@
|
||||||
<div translate>About Copay</div>
|
<div translate>About Copay</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div ng-show="index.usePushNotifications && !PNEnabledByUser && !isAndroid">
|
<div ng-show="prefGlobal.usePushNotifications && !PNEnabledByUser && isIOS">
|
||||||
<div class="text-centered text-gray size-12 m10" translate>Push notifications for Copay are currently disabled. Enable them in the Settings app.</div>
|
<div class="text-centered text-gray size-12 m10" translate>Push notifications for Copay are currently disabled. Enable them in the Settings app.</div>
|
||||||
<ul class="no-bullet m0" ng-click="prefGlobal.openSettings()">
|
<ul class="no-bullet m0" ng-click="prefGlobal.openSettings()">
|
||||||
<li ng-style="{'color':index.backgroundColor}" translate>Open Settings app</li>
|
<li ng-style="{'color':index.backgroundColor}" translate>Open Settings app</li>
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,9 @@ angular.module('copayApp.controllers').controller('preferencesGlobalController',
|
||||||
this.feeOpts = feeService.feeOpts;
|
this.feeOpts = feeService.feeOpts;
|
||||||
this.currentFeeLevel = feeService.getCurrentFeeLevel();
|
this.currentFeeLevel = feeService.getCurrentFeeLevel();
|
||||||
this.usePushNotifications = isCordova && !isMobile.Windows();
|
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) {
|
cordova.plugins.diagnostic.isRemoteNotificationsEnabled(function(isEnabled) {
|
||||||
$scope.PNEnabledByUser = isEnabled;
|
$scope.PNEnabledByUser = isEnabled;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue