App Store 的 iTunes 链接中的“mt=8”是什么?
有谁知道App Store链接中mt
参数的意义?
示例链接:
http://phobos.apple.com/WebObjects /MZStore.woa/wa/viewSoftware?id=337319445&mt=8
似乎任何值都可以工作,例如 mt=0
、mt=999
, ETC。
Does anyone know the significance of the mt
parameter in App Store Links?
Sample link:
http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=337319445&mt=8
It seems that any value will work, like mt=0
, mt=999
, etc.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
Apple 指定了许多不同的媒体类型(mt 值):
因此,为了回答您的问题,iTunes 链接中的“mt=8”只是将其标识为“移动软件应用程序”类型。
Apple designates a number of different Media Types (mt values):
So, to answer your question, the "mt=8" in iTunes links simply identifies it as being of type 'Mobile Software Applications'.
有些人指出,您实际上可以删除链接的 mt 部分,但您仍然会到达预期的页面。这是正确的,但在 iOS 上,附加 mt 标签来告诉操作系统要切换到哪个应用程序会很有帮助。当您不添加 mt 部分并且链接到应用程序时,操作系统将首先启动 iTunes 应用程序。然后,该程序会发现该链接指向一个应用程序,然后切换到 App Store 应用程序。
因此,通过向 iTunes URL 添加正确的 mt 标签来增强用户体验是一种很好的做法。
Some people noted the you can actually drop the mt part of the link and you still end up on the expected page. This is correct, but on iOS it is helpful to attach the mt tag to tell the OS to what app to switch. When you don't add the mt part and you link to an app the OS will first fire up the iTunes app. This one then figures out that the link points to an app and then switches over to the App Store app.
Therefore it is good practice to enhance the experience for the user by adding the correct mt tag to your iTunes URLs.
来源
Source
mt = 媒体类型。 mt=8 == media=software
有效的媒体类型有:电影、播客、音乐、音乐视频、有声读物、
ShortFilm、tvShow、software,
大概都是,movie = 1、podcast=2、music=3、musicVideo=4 等等,直到 software=8
我认为除这些有效值之外的任何其他数值(> 8)都会返回全部。
The mt = Media Type. mt=8 == media=software
Valid media types are : movie, podcast, music, musicVideo, audiobook,
shortFilm, tvShow, software, all
presumably, movie = 1, podcast=2, music=3, musicVideo=4 and so on until software=8
I think anything other numeric value (>8) than those valid ones will return all.
我曾经认为您可以删除 mt 和 ls 参数而不会产生任何影响。
我刚刚发现了一个失败的案例...它可以在没有参数的 iPhone 上找到,但不能在 iPad 上找到。在 iPad 上,它启动了 iTunes,但从未将您带到正确的应用程序。
我不知道为什么......但是,我把它们放回去,它在 iPhone 和 iPad 上运行良好。
我没有尝试只剥离 mt 和 ls。我怀疑 ls=1 才是罪魁祸首……尽管我不确定为什么 iPhone 会比 iPad 更宽容。
I USED to think you could strip the mt and ls parameters without any impact.
I just discovered a case where that failed... it worked find on iPhones without the parameters but not on iPads. On an iPad it launched iTunes, but never brought you to the right app.
I'm not sure why... but, I put them back in and it works fine on iPhone and iPad.
I didn't experiment with stripping just the mt vs. the ls. I suspect it's the ls=1 that is the culprit... though I'm not sure why iPhone would be more forgiving than iPad.
Appstore上的应用程序有特定的URL格式
http://itunes.apple.com/[country-code]/app/[app-name]/id+[id_value]?mt=[1...12]
< em>mt 的值可以是 1 到 12 之间的任何值,并且每个值都分配给特定类别
我。 8 适用于 iOS 应用
ii. Mac 应用程序为 12
The app on Appstore has specific URL format
http://itunes.apple.com/[country-code]/app/[app-name]/id+[id_value]?mt=[1...12]
Value for mt can be anything from 1 to 12 and each assigned to specific category
i. 8 for iOS apps
ii. 12 for Mac apps
当你已经有了一个唯一的 id 时,例如:
itunes.apple.com/us/app/rogo/id400118698?mt=8
没有它似乎工作正常,即:
http://itunes.apple.com/us/app/rogo/id400118698
在这种新的 URL 格式中,只有 id 很重要 - 应用程序名称“rogo”将被忽略。
When you've got a unique id already like:
itunes.apple.com/us/app/rogo/id400118698?mt=8
it seems to work fine without it, ie:
http://itunes.apple.com/us/app/rogo/id400118698
In this new URL format, only the id matters - the app name "rogo" is ignored.
请注意,某些浏览器会尊重处理不同媒体类型的首选项——即,如果您剥离它,可能会产生意想不到的/意外的后果。
Note that some browsers will respect preferences for handling different media types -- ie it can have unintended/unexpected consequences if you strip it.