/web2app

tiny javascript library to launch a mobile app. from a webpage

Primary LanguageJavaScriptMIT LicenseMIT

Web2App Library

Launch a mobile app. from a webpage

daumtools.web2app({
	urlScheme : '',									// iphone : custom scheme
	intentURI : '',									// android : intent URI
	appName   : '', 								// application Name (ex. facebook, twitter, daum)
	storeURL  : '',									// app store URL
	willInvokeApp : function() {},					// function for logging
	onAppMissing  : function() {},					// fallback function (default. move to appstore)
	onUnsupportedEnvironment : function() {}		// fallback function
});

Warning : onAppMissing fallback function isn't working on android chrome, because chrome should use the intent.

Dependency : ua_parser