question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to trigger a deep link from a local notification?

See original GitHub issue

Hi,

How can I trigger a deep link from a FCM.presentLocalNotification?

I’m using React Native 0.45.0 with react-native-fcm 7.0.3 and I’m running in a real Android device and in an emulator too.

All notifications are working well, but I didn’t find a way to load a deep link when the user press on the local notification (showed on the Android notification bar).

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
evollucommented, Sep 15, 2017

@shimatai you can check if the notif has opened_from_tray

2reactions
justuseapencommented, Aug 8, 2017

I’m working on this now. You can use the notification listener to grab notification details and use your router (in my case react-native-router-flux) to trigger the desired action and show the right view.

If you’re using URL schemes seems like Crossroads is the routing lib of choice for projects like this.

@shimatai your thumbs up indicates this maybe solved your issue. Is that the case? If so, @evollu you can probably close this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I implement deep links in local notification
This is where you intercept the notification tap and call the appropriate modules either using OpenURL or doing a direct push or present...
Read more >
Start an Activity with a Deep Link | Notifications in Android
My Online Courses https://stevdza-san.com☕ Buy me a Coffeehttps://ko-fi.com/stevdza_san ‍ Wanna become a member?
Read more >
URLs, Links and Deep Links - OneSignal Documentation
This guide explains how to open to a specific page of your app or website using push notifications. For options using Email or...
Read more >
iOS: How to open Deep Links, Notifications and Shortcuts
User taps on the deeplink outside of the app · AppDelegate detects the link and triggers openUrl delegate method (or ContinueUserActivity ...
Read more >
Create a deep link for a destination - Android Developers
Create an implicit deep link · In the Design tab of the Navigation Editor, select the destination for the deep link. · Click...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found