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

Android and ios always leads to opening the Play Store #22

Open
umar28dec opened this issue Feb 21, 2017 · 1 comment
Open

Android and ios always leads to opening the Play Store #22

umar28dec opened this issue Feb 21, 2017 · 1 comment

Comments

@umar28dec
Copy link

umar28dec commented Feb 21, 2017

Android and ios always open into the app store even app is installed
<--! library file ->

<button type="button" class="view"><a href="javascript:void(0)" data-uri="myapp://example.com" onclick="openApp(this.dataset.uri)"> view</a></button>


<script>
 deeplink.setup({
    iOS: {
        appName: "App name",
        appId: "app_id",
    },
    android: {
        appId: "app id"
    }
});

    function openApp(url){
    deeplink.open(url);    
    return false;
}

</script>
@alanandrade
Copy link

é possível alterar no arquivo js, alterando a var baseurl, para o link desejado, e inserindo na function de abertura.

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