Example #1
0
        public NotificationManager(ShinyCoreServices core,
                                   AndroidNotificationManager manager,
                                   IJobManager jobManager)
        {
            this.core       = core;
            this.manager    = manager;
            this.jobManager = jobManager;

            this.core
            .Android
            .WhenIntentReceived()
            .SubscribeAsync(x => this
                            .core
                            .Services
                            .Resolve <AndroidNotificationProcessor>() !
                            .TryProcessIntent(x)
                            );
        }
Example #2
0
        public NotificationManager(ShinyCoreServices core, AndroidNotificationManager manager)
        {
            this.core    = core;
            this.manager = manager;

            this.core
            .Android
            .WhenIntentReceived()
            .Subscribe(x => this
                       .core
                       .Services
                       .Resolve <AndroidNotificationProcessor>()
                       .TryProcessIntent(x)
                       );

            // auto process intent?
            //this.context
            //    .WhenActivityStatusChanged()
            //    .Where(x => x.Status == ActivityState.Created)
            //    .Subscribe(x => TryProcessIntent(x.Activity.Intent));
        }