Skip to content
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

Example Vue #11

Open
okisam360 opened this issue Jan 11, 2021 · 2 comments
Open

Example Vue #11

okisam360 opened this issue Jan 11, 2021 · 2 comments

Comments

@okisam360
Copy link

Hi , You could give an example for nativescript-vue. I don't know how to manage the link correctly

Thanks!!!

@okisam360
Copy link
Author

okisam360 commented Jan 12, 2021

Solution NS 7:
Archive main.js add:
import { registerUniversalLinkCallback } from "nativescript-plugin-universal-links";
import { getUniversalLink } from "nativescript-plugin-universal-links";

new Vue({
  mounted() {
    //Detect app is close
    let ul = getUniversalLink();    
    if(ul){
       //Redirect with route      
    }
    //Detect app is open
    registerUniversalLinkCallback(ul => {
        //Redirect with route
    });
  }, 
}).$start()

@sebestindragos
Copy link
Owner

This project is no longer maintained in this repo, it has been taken over by the NS Community
https://github.com/nativescript-community/universal-links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants