Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 推送通知打开时的路由_C#_React Native_.net Core_Azure Notificationhub - Fatal编程技术网

C# 推送通知打开时的路由

C# 推送通知打开时的路由,c#,react-native,.net-core,azure-notificationhub,C#,React Native,.net Core,Azure Notificationhub,我正在为我们的项目使用React本机Azure通知中心库,在单击远程推送通知后,我们一直很难导航到特定的应用程序屏幕。如何使用react native实现这一点。你能帮我们解决这个问题吗?或者你能告诉我们解决这个问题的方法吗 const NotificationHub = require('react-native-azurenotificationhub'); const PushNotificationEmitter = new NativeEventEmitter(Notification

我正在为我们的项目使用React本机Azure通知中心库,在单击远程推送通知后,我们一直很难导航到特定的应用程序屏幕。如何使用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
}

您能分享一下您尝试过的内容或遇到的错误吗?这将大大有助于解决您的问题。我没有收到任何错误,我实际上想知道当用户打开推送通知时,如何将用户路由到特定屏幕。当应用程序打开时,我们了解通知信息。但是,当应用程序关闭时,我们如何对React本机Azure通知中心库执行相同的操作。您是否可以分享您尝试过的内容或遇到的错误?这将大大有助于解决您的问题。我没有收到任何错误,我实际上想知道当用户打开推送通知时,如何将用户路由到特定屏幕。当应用程序打开时,我们了解通知信息。但当应用程序关闭时,我们如何对React本机Azure通知中心库执行相同的操作。