我的应用程序只有在应用程序打开并处于后台时才会收到通知。但我要求通知应该到达甚至应用程序是关闭的。我如何在反应本机中使用react-本机-fcm来实现这一点?store fcm token in your server this.notificationListener = FCM.on(FCMEvent.Notification, async (notif) => {
// there are two parts of not
现在,在android中,我将这段代码放在一个活动中,以便在按下按钮时显示通知。Notification.Builder nBuilder = new Notification.Builder(AlertsActivity.this);nBuilder.setContentTitle("You Have a notification!"),如果我点击了任何通知,它会将我重定向到另一个活动(NotificationActivity)
现在我将此代码用于清除通知,但它只清