Ref push notification

This commit is contained in:
Gustavo Maximiliano Cortez 2016-01-22 00:35:11 -03:00
commit fbdfa0016e
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
5 changed files with 20 additions and 13 deletions

View file

@ -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;