Exemplo n.º 1
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);
        }
 public static void Init(INotificationsSettingsProvider notificationsSettings)
 {
     _notificationsSettings = notificationsSettings;
 }