如何链接到的应用程序在App Store [英] How to link to apps on the app store

查看:318
本文介绍了如何链接到的应用程序在App Store的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创造我的iPhone游戏的免费版本。我想有免费的版本,需要人们在App Store付费版本里面的按钮。如果我使用一个标准的链接

I am creating a free version of my iPhone game. I want to have a button inside the free version that takes people to the paid version in the app store. If I use a standard link

<一个href=\"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=300136119&mt=8\">http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=300136119&mt=8

iPhone的Safari浏览器打开第一个,然后应用程序商店。我已经使用了直接打开应用商店的其他应用程序,所以我知道这是可能的。

the iPhone opens Safari first, and then the app store. I have used other apps that open the app store directly, so I know it is possible.

任何想法?什么是应用商店的URL方案?

Any ideas? What is the URL Scheme for the app store?

推荐答案

编辑在2016年2月2日

从iOS 6中<起始href=\"https://developer.apple.com/library/$p$prelease/ios/documentation/StoreKit/Reference/SKITunesProductViewController_Ref/index.html\">SKStoreProductViewController课是介绍。您可以在不离开你的应用程序链接的应用程序。在code段斯威夫特目标-C

Starting from iOS 6 SKStoreProductViewController class was introduce. You can link an app without leaving your app. Code snippet in Swift and objective-C is here.

A <一个href=\"https://developer.apple.com/library/$p$prelease/ios/documentation/StoreKit/Reference/SKITunesProductViewController_Ref/index.html\">SKStoreProductViewController目标presents商店,允许
  用户可以从App Store购买其他媒体。例如,您的应用程序
  可能会显示商店允许用户购买其他应用程序。

A SKStoreProductViewController object presents a store that allows the user to purchase other media from the App Store. For example, your app might display the store to allow the user to purchase another app.

和公告对于苹果开发者。

吸引客户直接向您的应用程序
  在App Store与iTunes链接
  使用iTunes链接,您可以提供您
  客户提供了一个简单的方法来访问
  您在App Store上的应用程序直接
  从您的网站或营销
  活动。创建一个iTunes链接
  简单且可制成直接
  客户到任何一个单一的应用程序,所有的
  您的应用程序,或与特定应用
  您的公司名称中指定。

Drive Customers Directly to Your App on the App Store with iTunes Links With iTunes links you can provide your customers with an easy way to access your apps on the App Store directly from your website or marketing campaigns. Creating an iTunes link is simple and can be made to direct customers to either a single app, all your apps, or to a specific app with your company name specified.

要送客户到一个特定的
  应用:
   http://itunes.com/apps/appname

To send customers to a specific application: http://itunes.com/apps/appname

要发送
  客户你的应用程序的列表
  在App Store:
   http://itunes.com/apps/developername

要发送给客户特定应用
  与包括在您的公司名称
  网址:
  <一href=\"http://itunes.com/apps/developername/appname\">http://itunes.com/apps/developername/appname

其他注意事项:

您可以替换的http:// ITMS:// itms-应用:// 来避免重定向

You can replace http:// with itms:// or itms-apps:// to avoid redirects.

有关命名的信息,请参阅Apple QA1633:

For info on naming, see Apple QA1633:

<一个href=\"https://developer.apple.com/library/ios/#qa/qa1633/_index.html\">https://developer.apple.com/library/ios/#qa/qa1633/_index.html.

修改(截至2015年1月):

itunes.com/apps链接应更新为appstore.com/apps。见QA1633以上,这已被更新。新的 QA1629 建议从一个应用程序启动存储这些步骤,code

itunes.com/apps links should be updated to appstore.com/apps. See QA1633 above, which has been updated. A new QA1629 suggests these steps and code for launching the store from an app:


    您的计算机上
  1. 启动iTunes。

  2. 搜索你要链接到该项目。

  3. 右键单击或iTunes中的项目名称控制单击,然后从弹出菜单中选择复制iTunes商店的网址。

  4. 在您的应用程序,创建复制的iTunes网址的NSURL对象,那么这个对象传递给UIApplication的的的OpenURL:方法在App Store打开您的项目

样code:

NSString *iTunesLink = @"itms://itunes.apple.com/us/app/apple-store/id375380948?mt=8";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]];

这篇关于如何链接到的应用程序在App Store的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆