打开推送通知时的路线

问题描述

我正在为项目使用React Native Azure Notification Hub库,单击远程推送通知后,我们一直难以导航到特定的应用程序屏幕。我该如何使用React Native实现这一点。您能否为我们解决此问题,或显示解决此问题的方法

const NotificationHub = require('react-native-azurenotificationhub');
const PushNotificationEmitter = new NativeEventEmitter(NotificationHub);
const EVENT_REMOTE_NOTIFICATION_RECEIVED = 'remoteNotificationReceived';

useEffect(() => {
   PushNotificationEmitter.addListener(EVENT_REMOTE_NOTIFICATION_RECEIVED,_onRemoteNotification);
},[]);

function _onRemoteNotification(notification) {
    ...actions
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)