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;}
source
share