Open App Store window in Window Phone in javascript or php

I need to send a message containing a Single url to install the application. The user clicks on the URL, then based on the window of the user device / Mac / google store will be opened

The following code is redirected to the Google Play Store, Mac App Store. but it does not redirect to the Store window.

switch (_getOS ()) {case "Mac": header ("location: https://itunes.apple.com/in/app/one-touch-response/id987064767?mt=8 "); break;

case "Android": header("location:https://play.google.com/store/apps/details?id=com.luckey.onetouch1&hl=en"); break; default: header("location:http://windowsphone.com/s?appid=b9d594c5-6b7e-4b25-86cb-068f55a1f7bb"); break;

}

+4
source share
2 answers

I think you are trying to get the operating system type type from HTTP USER AGENT

. HTTP

.

+3

:

URL-:

 ms-windows-store:navigate?appid=[your app ID]

URI:

 ms-windows-store:search?publisher=[your publisher display name]
0

Source: https://habr.com/ru/post/1606025/


All Articles