fallback-custom-scheme
v0.1.4
Published
Launcher application (iOS, Android, Windows, Mac) from web page.
Readme
fallback-custom-scheme
Launcher application (iOS, Android, Windows, Mac) from web page. Use custom url scheme to launch app. If not installed the application, fallback (ex. app store, google play store etc).
| app | handling | | --- | --- | | installed | open application | | not installed | fallback (ex. your store url) |
Demo
Install
npm
npm i fallback-custom-schemedownload from url
https://satoshikawabata.github.io/fallback-custom-scheme/bundle.jsUsage
var FallbackCustomScheme = requie('fallback-custom-scheme');
var fcs = new window.FallbackCustomScheme({
urlScheme: 'hoge://temp', // your application custom scheme
fallback: 'itunes://hoge', // if not installed the applicaiton, handling (ex. app store, google play store etc)
onFallback: function(){}, // fallback handler
browserback: 'back', // handling on return browser
onBrowserback: function(){}, // browser back handler
query: { // query
a: aaa,
b: bbb
}
});