awesome-landing
How to use
open and download all in one
// for open appconst urlScheme = 'appscheme://app.scheme'const androidIntentScheme = 'intent://app.intent/#Intent;scheme=appscheme;package=app.package;action=app.action;end' // for download appconst iosDownloadUrl = 'https://itunes.apple.com/us/app/appid'const androidDownloadUrl = 'https://play.google.com/store/apps/details?id=app.id'const androidPackageName = 'app.package.name'const androidIntentDownloadScheme = 'intent://app.intent/#Intent;scheme=appScheme;end'
Theses params are optional:
androidIntentScheme
androidIntentDownLoadScheme
forceIntent
separate open and download
// for open appconst urlScheme = 'appscheme://app.scheme'const androidIntentScheme = 'intent://app.intent/#Intent;scheme=appscheme;package=app.package;action=app.action;end' // for download appconst iosDownloadUrl = 'https://itunes.apple.com/us/app/appid'const androidDownloadUrl = 'https://play.google.com/store/apps/details?id=app.id'const androidPackageName = 'app.package.name'const androidIntentDownloadScheme = 'intent://app.intent/#Intent;scheme=appScheme;end' // openApp() returns a Promise
How to debug
- add query in url
__landingDebug__=1
How to mock userAgent
windowsessionStorageDEBUG_SCHEME_UA = YOUR_MOCK_UA_STRING
Contributors
yangmingshan |
zhangyuheng |
xudafeng |
---|
This project follows the git-contributor spec, auto upated at Thu Oct 18 2018 11:07:22 GMT+0800
.