Navigate to route (view) when push notification is received??
See original GitHub issueHello, First thank you for the tutorial. It helped me a lot in a project im doing. Can you please help me with a problem i have redirecting to another view (with parameters) when push is received??
firebase.init({
..............
onMessageReceivedCallback: function(message) {
let router:Router;
let navigationExtras: NavigationExtras = {
queryParams: {
"url": 'http:www.google.com/',
}
};
router.navigate(["view-name"], navigationExtras);
}
.........
)}
im getting cannot read property of router “undefined”
Please help!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:7
Top Results From Across the Web
route when push notification is opened · Issue #742 - GitHub
I use redux, and have a handler for the push-notification which triggers a navigation-action, works pretty smooth - although the correct view is ......
Read more >React Native - How to open route from push notification
In my situation, I wanted to get the data once the notification is been opened and then navigate according to that and it...
Read more >Open app in specific view when push notification is tapped
Say you have an app and want to redirect user to a specific view when a push notification is tapped, eg: going to...
Read more >Deep Linking Push Notifications with React Navigation - Medium
To test this, go to Firebase console, to the project that's linked to this app (URL looks something like this: https://console.firebase.google.
Read more >Start an Activity from a Notification - Android Developers
When you start an activity from a notification, you must preserve the user's expected navigation experience. Tapping Back should take the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@lumayara are you using angular? if yes, you have to follow exactly the installation guide, and then add this to a component(page) that is opened always (main.ts / app.component.ts / app.module.ts…in my case its home.component.ts):
Were you able to find a solution? I have the same problem.