File: example.html

Recommend this page to a friend!
  Classes of Arturs Sosins   JavaScript Mobile App Detection   example.html   Download  
File: example.html
Role: Example script
Content type: text/plain
Description: Example file
Class: JavaScript Mobile App Detection
Detect of mobile app is installed and open it
Author: By
Last change: formating
Date: 9 years ago
Size: 1,393 bytes


Class file image Download
<!DOCTYPE html> <!-- /************************************************************* * This script is developed by Arturs Sosins aka ar2rsawseen, * Feel free to distribute and modify code, but keep reference to its creator * * This library allows to detect if your app is installed * by using cutom url scheme on Android and iOS phones. * It can open an app if it is installed or * redirect to app store link if app is not installed * * For more information, examples and online documentation visit: * **************************************************************/ --> <html> <head> </head> <body> <h2>Redirecting...</h2> <p><a href="">Click here if your browser is not redirecting</a></p> <script src='AppDetector.js'></script> <script> //open app if it is already installed or redirect to appstore AppDetector("myapp://value?param1=value", { android: { url:"", pack:"com.waterbreadinternet.sushifish" }, ios: {url:""}, other: {url:""} }) </script> </body> </html>