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

Not working on load event in some case and in some scenario opening both. #20

Open
amsantoki opened this issue Jan 18, 2017 · 0 comments

Comments

@amsantoki
Copy link

Below is my code trying to work with onload event but gives me error in some case so I also try the same with click event as per given in example. I am attaching a screenshot or every cases and result. Please find it and can you please help me to run this.

2017-01-18_2014

<script src="~/Scripts/browser-deeplink.js" type="text/javascript"></script>
<script type="text/javascript">
deeplink.setup({
iOS: {
appId: "333903271",
appName: "twitter",
},
android: {
appId: "com.twitter.android"
}
});
window.onload = function () {
deeplink.open("twitter://user?screen_name=TimSeverien");
}
function clickHandler(uri) {
deeplink.open(uri);
return false;
}
</script>

<body>
<a href="#" data-uri="twitter://user?screen_name=TimSeverien" onclick="clickHandler(this.dataset.uri)">open</a>
</body>

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

1 participant