2

My application is receiving push notifications, when a push notification arrives, I would like to navigate to a specific component of the application. The problem is that the callback in which I'm handling the push notification is not a vue component and so I can't call this.$navigate.

So I tryed to inject directly Vue:

import Vue from 'nativescript-vue'

and then:

Vue.$navigateTo(Instrument);

But nothing happens. (The method is correctly called). I have no other idea to addressing this problem. Any hint?

1 Answer 1

4

I should have used:

Vue.navigateTo(..) or Vue.prototype.$navigateTo(..)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.