Ref push notification
This commit is contained in:
parent
22824cbe32
commit
fbdfa0016e
5 changed files with 20 additions and 13 deletions
|
|
@ -87,6 +87,9 @@ angular.module('copayApp.services').factory('configService', function(storageSer
|
|||
if (!configCache.glidera) {
|
||||
configCache.glidera = defaultConfig.glidera;
|
||||
}
|
||||
if (!configCache.pushNotifications) {
|
||||
configCache.pushNotifications = defaultConfig.pushNotifications;
|
||||
}
|
||||
|
||||
} else {
|
||||
configCache = lodash.clone(defaultConfig);
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
'use strict';
|
||||
angular.module('copayApp.services')
|
||||
.factory('pushNotificationsService', function($http, $log, isMobile, profileService, storageService, configService, lodash) {
|
||||
.factory('pushNotificationsService', function($http, $log, isMobile, profileService, storageService, configService, lodash, isCordova) {
|
||||
var root = {};
|
||||
var defaults = configService.getDefaults();
|
||||
var usePushNotifications = isMobile.iOS() || isMobile.Android();
|
||||
var usePushNotifications = isCordova && !isMobile.Windows();
|
||||
|
||||
root.pushNotificationsInit = function() {
|
||||
if (!usePushNotifications) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue