public AndroidNotificationService()
 {
     if (Instance == null)
     {
         CreateNotificationChannel();
         Instance = this;
     }
 }
Пример #2
0
 public override void OnReceive(Context context, Intent intent)
 {
     if (intent.IsNotification())
     {
         NotificationInfo           notificationInfo = intent.GetNotificationInfo();
         AndroidNotificationService manager          = AndroidNotificationService.Instance ?? new AndroidNotificationService();
         manager.ProcessNotification(notificationInfo);
     }
 }