Created
October 23, 2015 05:24
-
-
Save aaustin/f0eb2a6fc905a791ea0c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fallbackFunction = function() { | |
window.location.replace('market://details?id=com.myapp.package'); | |
}; | |
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