Ref push notification
This commit is contained in:
parent
22824cbe32
commit
fbdfa0016e
5 changed files with 20 additions and 13 deletions
|
|
@ -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