c# - Check in a website if an App is installed on tablet -


is possible check existence of app on mobile device website?

currently developing website in c# has have ability choose whether open concerned app or install it.

(i assuming asp.net here didn't specify.)

yes can if tablet sends correct user agent string.

i have attached current platform.browser file may have inaccuracies. content placed in app_browsers asp.net folder. reason patch file microsoft's isn't up-to date , have missing information.

android problem v3 tablet 4 may not , haven't had time correct further.

to access information use request.browser.platform , request.browser.version

<browsers>     <gateway id="platformwindowsphone" parentid="platform">         <identification>             <useragent match="windows phone" />         </identification>         <capabilities>             <capability name="platform" value="windows phone" />         </capabilities>     </gateway>      <gateway id="platformie11" parentid="platformwinnt">         <identification>             <useragent match="trident/7.0" />             <useragent match="rv:11.0" />         </identification>         <capabilities>             <capability name="browser" value="ie" />             <capability name="version" value="11.0" />         </capabilities>     </gateway>      <gateway id="platformipad" parentid="platform">         <identification>             <useragent match="ipad" />         </identification>         <capabilities>             <capability name="platform" value="ipad" />         </capabilities>     </gateway>      <gateway id="platformiphone" parentid="platform">         <identification>             <useragent match="iphone" />         </identification>         <capabilities>             <capability name="platform" value="iphone" />         </capabilities>     </gateway>      <gateway id="platformandroid" parentid="platform">         <identification>             <useragent match="android" />         </identification>         <capabilities>             <capability name="platform" value="android" />         </capabilities>     </gateway>      <gateway id="platformandroid50" parentid="platform">         <identification>             <useragent match="android 5\.0" />         </identification>         <capabilities>             <capability name="version" value="5.0" />         </capabilities>     </gateway>      <gateway id="platformandroid45" parentid="platform">         <identification>             <useragent match="android 4\.5" />         </identification>         <capabilities>             <capability name="version" value="4.5" />         </capabilities>     </gateway>      <gateway id="platformandroid44" parentid="platform">         <identification>             <useragent match="android 4\.4" />         </identification>         <capabilities>             <capability name="version" value="4.4" />         </capabilities>     </gateway>      <gateway id="platformandroid43" parentid="platform">         <identification>             <useragent match="android 4\.3" />         </identification>         <capabilities>             <capability name="version" value="4.3" />         </capabilities>     </gateway>      <gateway id="platformandroid42" parentid="platform">         <identification>             <useragent match="android 4\.2" />         </identification>         <capabilities>             <capability name="version" value="4.2" />         </capabilities>     </gateway>      <gateway id="platformandroid41" parentid="platform">         <identification>             <useragent match="android 4\.1" />         </identification>         <capabilities>             <capability name="version" value="4.1" />         </capabilities>     </gateway>      <gateway id="platformandroid40" parentid="platform">         <identification>             <useragent match="android 4\.0" />         </identification>         <capabilities>             <capability name="version" value="4.0" />         </capabilities>     </gateway>      <gateway id="platformandroid30" parentid="platform">         <identification>             <useragent match="android 3\.0" />         </identification>         <capabilities>             <capability name="version" value="3.0" />         </capabilities>     </gateway>      <gateway id="platformandroid23" parentid="platform">         <identification>             <useragent match="android 2\.3" />         </identification>         <capabilities>             <capability name="version" value="2.3.3" />         </capabilities>     </gateway>      <gateway id="platformandroid22" parentid="platform">         <identification>             <useragent match="android 2\.2" />         </identification>         <capabilities>             <capability name="version" value="2.2" />         </capabilities>     </gateway>      <gateway id="platformwinmacos" parentid="platform">         <identification>             <useragent match="macintosh" />         </identification>         <capabilities>             <capability name="platform" value="mac os" />         </capabilities>     </gateway>      <gateway id="platformwinxp" parentid="platformwinnt">         <identification>             <useragent match="windows nt 5\.1" />         </identification>         <capabilities>             <capability name="platform" value="windows xp" />         </capabilities>     </gateway>      <gateway id="platformwin2003" parentid="platformwinnt">         <identification>             <useragent match="windows nt 5\.2" />         </identification>         <capabilities>             <capability name="platform" value="windows 2003" />         </capabilities>     </gateway>      <gateway id="platformwinvista" parentid="platformwinnt">         <identification>             <useragent match="windows nt 6\.0" />         </identification>         <capabilities>             <capability name="platform" value="vista" />         </capabilities>     </gateway>      <gateway id="platformwin7" parentid="platformwinnt">         <identification>             <useragent match="windows nt 6\.1" />         </identification>         <capabilities>             <capability name="platform" value="windows 7" />         </capabilities>     </gateway>      <gateway id="platformwin8" parentid="platformwinnt">         <identification>             <useragent match="windows nt 6\.2" />         </identification>         <capabilities>             <capability name="platform" value="windows 8" />         </capabilities>     </gateway>      <gateway id="platformwin81" parentid="platformwinnt">         <identification>             <useragent match="windows nt 6\.3" />         </identification>         <capabilities>             <capability name="platform" value="windows 8.1" />         </capabilities>     </gateway> </browsers> 

(i have posted community wiki information can improved)


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -