public void Initialize() { if (Instance == null) { CreateNotificationChannel(); Instance = this; } }
public override void OnReceive(Context context, Intent intent) { if (intent?.Extras != null) { string title = intent.GetStringExtra(AndroidNotificationManager.TitleKey); string message = intent.GetStringExtra(AndroidNotificationManager.MessageKey); AndroidNotificationManager manager = AndroidNotificationManager.Instance ?? new AndroidNotificationManager(); manager.Show(title, message); } }