-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deep Link Handling in Notifications #71
Comments
Hi, |
@fortesdev We kindly request you to re-evaluate the issue or provide any additional guidance on how we can troubleshoot this specific deep linking challenge. We value your support and insights. |
Apologies and reopening the issue, we will investigate this further. |
Hello there, Feel free to test suggested implementation and let us know upon the results. |
@alboldy-ib Indeed, I use navigation in my app to detect the initial URL via Additionally, I have noticed inconsistencies with the These challenges have made it difficult to handle deep links effectively within the app. I would appreciate any further guidance or insights you can provide on resolving these issues. Thank you for your assistance. |
I have the same issue @moustafadevrn describes above. It very disappointing to see no update has been provided on this for almost 2 months. |
Hello @fortesdev |
Hello, |
I'm also experiencing this issue - @alboldy-ib are there any updates on this? |
i have the same issue |
is there any update on this issue ??? |
Hello, Thank you for the extra patience. Our solution does not fully rely on React Native Linking library: to handle deeplinks form push notifications, it is expected to subscribe to one of the library events, and process the deeplink from the event’s data, like this:
React Native linking library in the example is used only to demonstrate that demo application can be opened by clicking on the deeplink somewhere outside of the application, we are sorry that documentation might be misleading, we will improve it. If you have problems receiving the "notificationTapped" event in terminated app state once user clicks on the push message, please check that MobileMessaging.init is called as early as possible. |
I have set up initialisation as early as possible, but the on-tap event is still not firing when the app is terminated. I cannot use Could this issue be conflicting with Notifee, which I also have installed? |
Unfortunately the code in this example doesn't properly solve the issue. Opening up a deep link from a completely closed state in this way is not really a suitable solution due to the use of the |
When you receive notifications containing deep links and the app is not open, your React Native app fails to detect the deep link URL using the
Linking.getInitialURL()
method. As a result, the app does not navigate to the appropriate page specified in the deep link URL.but manually triggering the deep link using the following adb shell command successfully detects the deep link URL:
adb shell am start -a android.intent.action.VIEW -d "com.infobip.mobilemessaging://deeplink/TestDeeplinkingScreen/TestDeeplinkingScreen2" com.example
and Here is the code snippet you are using to handle the initial deep link URL:
function handleInitialDeeplinkUrl() {
Linking.getInitialURL()
.then(initialUrl => {
if (!initialUrl) {
return;
}
console.log(initialUrl);
})
.catch(error => {
console.log('Initial URL is not provided');
});
}
React.useEffect(() => {
handleInitialDeeplinkUrl();
}, []);
Steps to Reproduce:
Expected Outcome:
The app should detect the URL and navigate to the expected page.
Actual Outcome:
The app does not detect the URL and therefore does not navigate to the expected page.
The text was updated successfully, but these errors were encountered: