WebIntent implement.
<script src="<module-dir>/lib/WebModule.js"></script>
<script src="<module-dir>/lib/WebIntent.js"></script>
<script>
if (0) {
// # Open the Google Play store.
var packageName = "com.android.vending"; // Google Play
var url = "https://play.google.com/store"; // Google Play
var intentURL = WebIntent.build(packageName, url);
WebIntent.redirect( intentURL );
}
if (0) {
// # Open the page of Caniuse.com in Chrome for Android.
var packageName = "com.android.chrome"; // Chrome for Android package name
var url = "http://caniuse.com/#search=webgl"; // Caniuse.com
var intentURL = WebIntent.build(packageName, url);
WebIntent.redirect( intentURL );
}
</script>