diff --git a/app-template/config-template.xml b/app-template/config-template.xml
index 3596fc947..e2fc4058f 100644
--- a/app-template/config-template.xml
+++ b/app-template/config-template.xml
@@ -32,7 +32,6 @@
-
diff --git a/src/js/controllers/preferencesNotifications.js b/src/js/controllers/preferencesNotifications.js
index 10ce21a4f..cf8c5a979 100644
--- a/src/js/controllers/preferencesNotifications.js
+++ b/src/js/controllers/preferencesNotifications.js
@@ -9,12 +9,12 @@ angular.module('copayApp.controllers').controller('preferencesNotificationsContr
var isCordova = platformInfo.isCordova;
var isIOS = platformInfo.isIOS;
+ $scope.appName = $window.appConfig.nameCase;
$scope.PNEnabledByUser = true;
$scope.isIOSApp = isIOS && isCordova;
if ($scope.isIOSApp) {
- cordova.plugins.diagnostic.isRemoteNotificationsEnabled(function(isEnabled) {
- $scope.PNEnabledByUser = isEnabled;
- $scope.$digest();
+ PushNotification.hasPermission(function(data) {
+ $scope.PNEnabledByUser = data.isEnabled;
});
}
@@ -23,14 +23,6 @@ angular.module('copayApp.controllers').controller('preferencesNotificationsContr
};
};
- $scope.openSettings = function() {
- cordova.plugins.diagnostic.switchToSettings(function() {
- $log.debug('switched to settings');
- }, function(err) {
- $log.debug(err);
- });
- };
-
$scope.pushNotificationsChange = function() {
var opts = {
pushNotifications: {
diff --git a/www/views/preferencesNotifications.html b/www/views/preferencesNotifications.html
index 8b54a93e2..7385fd380 100644
--- a/www/views/preferencesNotifications.html
+++ b/www/views/preferencesNotifications.html
@@ -18,11 +18,8 @@
Notifications
- Push notifications for Copay are currently disabled. Enable them in the Settings app.
+ Push notifications for {{appName}} are currently disabled. Enable them in the Settings app.
-
- Open Settings app
-