首页 > 解决方案 > 用户杀死应用程序时,firebase.notifications().getInitialNotification() 不起作用

问题描述

当应用程序在后台打开时,下面的代码正在工作。杀死应用程序后,我收到通知,但下面的代码不起作用。当用户通过通知访问应用程序时,我想将用户重定向到特定页面

firebase.notifications().getInitialNotification() .then((notificationOpen) => { console.log("getInitialNotification"); });

标签: firebasereact-nativenotificationsfirebase-cloud-messaging

解决方案


推荐阅读