Skip to content

Instantly share code, notes, and snippets.

@aaustin
Created October 23, 2015 23:20
Embed
What would you like to do?
var fallbackFunction = function() {
window.location.replace('market://details?id=io.branch.testbed&referrer=specialparam');
};
var addIFrame = function() {
var iframe = document.createElement("iframe");
iframe.style.border = "none";
iframe.style.width = "1px";
iframe.style.height = "1px";
iframe.src = 'your_uri_scheme://';
document.body.appendChild(iframe);
};
addIFrame();
setTimeout(fallbackFunction, 250);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment