Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kakao/web2app
tiny javascript library to launch a mobile app. from a webpage
https://github.com/kakao/web2app
Last synced: 3 months ago
JSON representation
tiny javascript library to launch a mobile app. from a webpage
- Host: GitHub
- URL: https://github.com/kakao/web2app
- Owner: kakao
- License: mit
- Created: 2013-06-11T06:33:12.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-06-27T10:00:10.000Z (over 1 year ago)
- Last Synced: 2024-11-10T23:49:37.008Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 616 KB
- Stars: 156
- Watchers: 21
- Forks: 43
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Web2App Library
Launch a mobile app. from a webpage
```javascript
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](https://developer.chrome.com/multidevice/android/intents).
Dependency : [ua_parser](https://github.com/html5crew/ua_parser)