简体   繁体   English

iOS App Store URL - 速率按钮 - iOS

[英]iOS App Store URL - Rate button - iOS

I want to add a rate button to the settings page in my iOS app. 我想在我的iOS应用中为设置页面添加一个率按钮。 The only problem I have is what to use as the link. 我唯一的问题是用什么作为链接。 I have been searching around and apparently you can use: 我一直在寻找,显然你可以使用:

http://appstore.com/appname

The problem is that I don't know the App Store URL of my app for sure until it gets reviewed and accepted onto the App Store... 问题是我不确定我的应用程序的App Store URL,直到它被审查并被接受到App Store ...

Should I take a gamble and use " http://appstore.com/appname " or should I wait for the app to be accepted and then in the next app update add the rate button?? 我应该赌博并使用“ http://appstore.com/appname ”或者我应该等待应用程序被接受,然后在下一个应用程序更新中添加率按钮?

Thanks for your time, Dan. 谢谢你的时间,丹。

Once you create your app in ITunes Connect you will get an app ID. 在ITunes Connect中创建应用后,您将获得一个应用ID。 you can use the app ID to refer to your app as follow 您可以使用应用ID来引用您的应用,如下所示

http://itunes.apple.com/app/id123456789 http://itunes.apple.com/app/id123456789

where 123456789 is your app ID 其中123456789是您的应用ID

or from within your app so it will open the app store app 或者从你的应用程序中,这样它将打开应用商店应用程序

itms-apps://itunes.apple.com/app/id123456789 ITMS-应用://itunes.apple.com/app/id123456789

you can refer to this Question for more details 您可以参考此问题了解更多详情

This tech note from the iOS Developer Library contains pretty clear rules about how to arrive at the "app name" portion of the link: 来自iOS开发人员库的此技术说明包含有关如何到达链接的“应用程序名称”部分的非常明确的规则:

To create an App Store Short Link, apply the following rules to your company or app name: 要创建App Store短链接,请将以下规则应用于您的公司或应用程序名称:

Remove all whitespace 删除所有空格

Convert all characters to lower-case 将所有字符转换为小写

Remove all copyright (©), trademark (™) and registered mark (®) symbols 删除所有版权(©),商标(™)和注册商标(®)符号

Replace ampersands ("&") with "and" 用“和”替换&符号(“&”)

Remove most punctuation (See Listing 2 for the set) 删除大多数标点符号(参见清单2中的集合)

Replace accented and other "decorated" characters (ü, å, etc.) with their elemental character (u, a, etc.) 用他们的元素字符(u,a等)替换重音和其他“装饰”字符(ü,å等)

Leave all other characters as-is. 保留所有其他字符。

Punctuation characters that must be removed. 必须删除的标点字符。

!¡"#$%'()*+,-./:;<=>¿?@[]^_`{|}~ !¡“#$%'()* +, - 。/ :; <=>¿@ [] ^ _`{|}〜

There are also some examples to demonstrate the conversion that takes place. 还有一些示例来演示发生的转换。

If you follow the rules, you should be safe in using the link for production. 如果您遵守规则,您应该安全地使用链接进行生产。

EDIT: 编辑:

Having said that, in my app I use this scheme to get real fancy and open the Rate page directly from within the app :) 话虽如此,在我的应用程序中,我使用此方案来获得真正的幻想,并直接从应用程序内打开Rate页面:)

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=<YOURAPPID>&pageNumber=0&sortOrdering=2&type=Purple+Software&mt=8"]];

Disclaimer: Use at your own risk, of course, I don't think there is any guarantee that this type of link won't break in the future. 免责声明:使用风险自负,当然,我认为不保证此类链接将来不会中断。

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

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