Esempio n. 1
0
 protected PushNotificationsServiceBase(
     IRemotePushNotificationsService remotePushNotificationsService,
     IPushTokenStorageService pushTokenStorageService,
     IPushNotificationsHandler pushNotificationsHandler,
     IPushNotificationParser pushNotificationParser,
     ILogManager logManager)
 {
     RemotePushNotificationsService = remotePushNotificationsService;
     PushTokenStorageService        = pushTokenStorageService;
     PushNotificationsHandler       = pushNotificationsHandler;
     PushNotificationParser         = pushNotificationParser;
     Logger = logManager.GetLogger <PushNotificationsServiceBase>();
 }
 public IosPushNotificationsService(
     IRemotePushNotificationsService remotePushNotificationsService,
     IPushTokenStorageService pushTokenStorageService,
     IPushNotificationsHandler pushNotificationsHandler,
     IPushNotificationParser pushNotificationParser,
     INotificationsPermissionsService permissionsService,
     INotificationCategoriesProvider notificationCategoriesProvider,
     ILogManager logManager)
     : base(remotePushNotificationsService, pushTokenStorageService, pushNotificationsHandler, pushNotificationParser,
            logManager)
 {
     _permissionsService             = permissionsService;
     _notificationCategoriesProvider = notificationCategoriesProvider;
 }
Esempio n. 3
0
        public DroidPushNotificationsService(
            IRemotePushNotificationsService remotePushNotificationsService,
            IPushTokenStorageService pushTokenStorageService,
            IPushNotificationsHandler pushNotificationsHandler,
            IPushNotificationParser pushNotificationParser,
            INotificationsSettingsProvider notificationsSettings,
            ILogManager logManager)
            : base(
                remotePushNotificationsService,
                pushTokenStorageService,
                pushNotificationsHandler,
                pushNotificationParser,
                logManager)
        {
            _appContext = Application.Context;

            NotificationsHelper.Init(notificationsSettings);

            _lifecycleObserver = new AppLifecycleObserver();
            ProcessLifecycleOwner.Get().Lifecycle.AddObserver(_lifecycleObserver);
        }