fallback-custom-scheme

Launcher application (iOS, Android, Windows, Mac) from web page.


License
ISC
Install
npm install fallback-custom-scheme@0.1.4

Documentation

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

demo page

Install

npm

npm i fallback-custom-scheme

download from url

https://satoshikawabata.github.io/fallback-custom-scheme/bundle.js

Usage

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
  }
});