Skip to content

YutamaKotaro/fallback-custom-scheme

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%