3 var env
= require('gitter-web-env');
4 var errorReporter
= env
.errorReporter
;
7 exports
.install = function() {
11 var iosGateway
= require('gitter-web-push-gateways/lib/ios/ios-notification-gateway');
12 var pushNotificationService
= require('gitter-web-push-notifications');
14 var feedbackEmitter
= iosGateway
.createFeedbackEmitter();
16 feedbackEmitter
.on('deregister', function(deviceTokens
) {
17 return pushNotificationService
.deregisterIosDevices(deviceTokens
).catch(function(err
) {
18 errorReporter(err
, {}, { module
: 'apn-feedback-listener' });