将LITE版本连接到App Store上的完整版本

发布于 2024-11-09 07:59:22 字数 598 浏览 0 评论 0原文

好的,我已经在 App-Store 上启动并运行了完整版本的应用程序。现在我正在开发精简版;我在其中放置了一个按钮,旨在将用户引导至应用程序商店的应用程序完整版本页面。

我正在使用 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms://itunes.com/apps/AppName"]] 命令。

我非常希望得到以下几个问题的帮助:

  1. 是否有更好的命令行来执行此操作?目前,它会(自动)浏览几个页面,直到到达 App-Store 上的相关页面。是否有一个命令行可以直接转到我将其定向到的页面?
  2. 我的应用程序名称由 2 个字符串组合而成(例如“应用程序名称”);目前,当我在设备上测试它时,它在定向到 App Store 时找不到它,而是转到一个有“搜索”按钮的页面,如果我单击此按钮,它会在App Store(命令行本身运行良好;如果我输入“Shazam”或任何其他熟悉的应用程序名称而不是我的 AppName,它会转到正确的页面)。我应该如何在命令行中编写它? “应用程序名称”还是“App_Name”?也许还有别的东西?

任何帮助将非常感激...

OK, so I have the full version of my application up and running on the App-Store. Now I'm working on the lite version; I placed a button in it that supposes to direct the user to the App-Store to the application FULL Version page.

I'm using the [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms://itunes.com/apps/AppName"]] command.

several issues I would very much appreciate assistance with:

  1. Is there a better command line for this action? currently it goes (automatically) through several pages till it reaches the relevant page on App-Store. Is there a command line that goes directly to the page I'm directing it to?
  2. My application's name is combined out of 2 strings (for example "App Name"); currently, when I test it on a device, it doesn't find it while being directed to the App Store and instead it goes to a page where I have a "Search" button and if I click this button it does find the App on the App Store (the command line itself works perfectly; if I enter "Shazam" or any other familiar application's name instead of my AppName it goes to the right page). How should I write it in the command line? "App Name" or "App_Name"? maybe something else?

any assistance would be very much appreciated...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

情话墙 2024-11-16 07:59:22

使用 itms:// 协议将确保链接直接转到 App Store 应用,而不是通过 Mobile Safari(正如您正确的做法)。

使用您的应用名称和应用 ID 将确保链接直接转到您的应用,而不是搜索它(当您使用那里的路径格式时会发生这种情况)。

您希望您的网址看起来像这样:

itms://itunes.apple.com/us/app/its-on-my-way/id334996949?mt=8

当然,除了使用您的应用程序信息。您可以轻松获取格式正确的名称和应用 ID,方法是导航到 iTunes 中您的应用页面,然后右键单击您的应用图标,您将在其中看到“复制链接”选项。将 http 替换为 itms 即可。

您还可以使用 Apple 的 iTunes Link Maker 获取适当的应用名称和 ID 。

如果您链接的应用程序尚未在商店中,您可以从 iTunesConnect 获取 ID,并且在大多数情况下,可以找出名称;大多数情况下,它只是使用小写字母,去掉标点符号,并用连字符替换空格,尽管有时可能会有所不同。如果您的应用程序包含任何不寻常的字符,或者不确定 iTunes 将如何更改它,请检查具有类似标点符号/字符的其他应用程序。

编辑添加

显然(从 URL 来看)此链接会转到美国 App Store 链接;我不确定它将如何在国际上运作。

进一步编辑添加

您可以通过 NSLocale 获取用户当前的国家/地区代码,如下所示:

NSLocale *currentLocale = [NSLocale currentLocale];
NSString *countryCode = [[currentLocale objectForKey:NSLocaleCountryCode] lowercaseString];

然后您可以替换 us 我上面使用的字符串的一部分与这个小写字符串,这通常会将用户发送到正确的商店(除非没有与其国家/地区代码关联的商店)。不过,您的应用程序必须位于该商店中,而且我不确定名称部分是如何工作的:可能是 iTunes 希望应用程序在该区域设置中命名,或者可能是英文版本没问题。

Using the itms:// protocol will ensure the link goes directly to the App Store app rather than through Mobile Safari (as you're correctly doing).

Using your app name and app ID will ensure the link goes directly to your app rather than searching for it, which is what happens when you use the path format you have there.

You want your url to look like this:

itms://itunes.apple.com/us/app/its-on-my-way/id334996949?mt=8

except using your app information, of course. You can easily get the properly formatted name and the app id by navigating to your app's page in iTunes and then right-click on you're app's icon where you'll get the option to "Copy Link". Replace the http with itms and you're set.

You can also get the appropriate app name and id using Apple's iTunes Link Maker.

If the app you're linking to isn't in the store yet you can get the id from iTunesConnect and, in most cases, figure out the name; mostly it's just using lowercase letters, stripping out punctuation, and replacing spaces with hyphens, though sometimes it can be a bit different. If you have an app with any unusual characters or are not sure how iTunes will change it, check other apps with similar punctuation/characters.

Edited to add

Obviously (from the URL) this link goes to the US App Store link; I'm not sure how it will work internationally.

Further edited to add

You could get the user's current country code via NSLocale like this:

NSLocale *currentLocale = [NSLocale currentLocale];
NSString *countryCode = [[currentLocale objectForKey:NSLocaleCountryCode] lowercaseString];

Then you could substitute the us part of the string I used above with this lowercase string, which would often send the user to the correct store (unless there was no store associated with their country code). Your app would have to be in that store, though, and I'm not sure how the name part works: it might be that iTunes wants the app as named in that locale or it might be that it's fine with the English version.

落叶缤纷 2024-11-16 07:59:22

我使用了以下 - 链接更改为模糊的客户;-)

NSString *iTunesLink = @"http://itunes.apple.com/gb/app/wired-news-uk/id435728870?mt=8";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]];

我所做的就是通过 iTunes 本身获取链接。当然,这意味着您想要链接的应用程序必须已存在于 iTunes 中。不过,我知道在 iTunesConnect 中创建应用程序后可以预期链接 - 尽管我还没有需要这样做。

I have used the following - link changed to obscure customer ;-)

NSString *iTunesLink = @"http://itunes.apple.com/gb/app/wired-news-uk/id435728870?mt=8";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]];

All I do is grab the link via iTunes itself. Of course that means the app you wish to link to already has to exist in iTunes. However I understand it is possible to anticipate a link after creating the app in iTunesConnect - though I haven't had the need to do this yet.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文