简体   繁体   English

在 AppStore 中打开 App 的正确方法是什么

[英]What is correct way to open App in AppStore

Im trying to open app page in Apple AppStore app on iOS Devices from AngularJs website.我试图从 AngularJs 网站的 iOS 设备上的 Apple AppStore 应用程序中打开应用程序页面。

Upon searching I came to know there are 3 ways of opening app page on apple appstore:经过搜索,我了解到在苹果应用商店打开应用页面的方式有 3 种:

This will first open browser then it will ask you to whether to open it ion appstore app:这将首先打开浏览器,然后它会询问您是否打开它 ion appstore 应用程序:

http://itunes.apple.com/app/apple-store/id375380948?mt=8 http://itunes.apple.com/app/apple-store/id375380948?mt=8

Following 2 ways opens app page in appstore directly but Im not sure which one will work for all iOS Versions / Devices and which one will not:以下两种方式直接在应用商店中打开应用页面,但我不确定哪一种适用于所有 iOS 版本/设备,哪一种不适用:

itms://itunes.apple.com/app/apple-store/id375380948?mt=8 itms://itunes.apple.com/app/apple-store/id375380948?mt=8

or this way:或者这样:

itms-apps://itunes.apple.com/app/apple-store/id375380948?mt=8 itms-apps://itunes.apple.com/app/apple-store/id375380948?mt=8

Im confused which one to use for my project and whether if there is any better way to do this?我很困惑在我的项目中使用哪一个,是否有更好的方法来做到这一点?

itms-apps:// actually works again in iOS10, itms-apps:// no longer works in iOS5 and above. itms-apps:// 实际上在 iOS10 中再次有效,itms-apps:// 在 iOS5 及以上版本中不再有效。 Just use只需使用

https://itunes.apple.com/app/id375380948?mt=8 and there are no more redirects. https://itunes.apple.com/app/id375380948?mt=8并且不再有重定向。

Just use:只需使用:

itms-apps://itunes.apple.com/app/apple-store/id375380948?mt=8

It works with iOS 10 and thats a big deal as you covered almost 99.9% of iOS devices according to this stats:它适用于 iOS 10,这很重要,因为根据以下统计信息,您覆盖了几乎 99.9% 的 iOS 设备:

https://david-smith.org/iosversionstats/ https://david-smith.org/iosversionstats/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM