Mac App Store - 链接到应用程序评论页面

发布于 2024-10-14 23:13:43 字数 150 浏览 1 评论 0原文

在我们软件的 iOS 版本中,我们提示用户使用众所周知的“viewContentsUserReviews”URL 提交评论。

我们希望在 Mac OSX 版本的应用程序中做同样的事情。是否有类似的 URL 可用于 Mac App Store?

提前致谢。

In the iOS versions of our software we prompt users to submit reviews using the well know "viewContentsUserReviews" URL.

We'd like to do the same thing in the Mac OSX versions of the apps. Is there a similar URL that can be used for the Mac App Store?

Thanks in advance.

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

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

发布评论

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

评论(5

长途伴 2024-10-21 23:13:43

我有部分答案。要直接链接到 Mac App Store,您需要使用 MAS 协议,即“macappstore:”。这可以通过在 MAS 应用程序的 info.plist 中查找来找到。

一些实验发现,使用应用程序链接中的部分 URL 可以在 MAS 应用程序中使用。因此,如果我从 MAS 应用程序复制链接到我的应用程序,它看起来像这样:

http://itunes.apple.com/us/app/ringer-ringtone-maker/id402437824?mt=12

当然使用这个并不能直接在 MAS 应用程序中打开。但是您可以删除商店国家/地区指示符和应用程序名称并添加 MAS 协议,您会得到以下结果:

macappstore://itunes.apple.com/app/id402437824?mt=12

这会直接打开应用程序的主页在 MAS 应用程序中。我还没有找到直接链接到评级页面的方法。由于 MAS 中的评级部分只是显示的主页的一部分,因此可能没有直接链接到它。如果那不是真的,我会喜欢它。

也许其他人可以找到最后一点。与此同时,我计划使用主页链接作为后备,直到找到评级页面 URL。

I have part of an answer. To link directly into the Mac App Store you need to use the MAS protocol which is "macappstore:". This can be found by looking in the info.plist for the MAS app.

Some experimentation has found that using part of the URL from the link to an app will work in the MAS app. So if I copy the link to my app from the MAS app it looks like this:

http://itunes.apple.com/us/app/ringer-ringtone-maker/id402437824?mt=12

Of course using this does not open directly in the MAS app. But you can remove the store country designator and the name of the app and add the MAS protocol and you get this:

macappstore://itunes.apple.com/app/id402437824?mt=12

Which opens the main page for an app directly in the MAS app. I have not yet found a way to link directly to the rating page. Since the rating section in the MAS is just a part of the main page that is revealed it is possible that there is no link directly to it. I would love it if that were not true.

Perhaps someone else can find this last bit. In the meantime I plan on using the link to the main page as a fallback until the rating page URL can be found.

多彩岁月 2024-10-21 23:13:43

ma​​cOS 10.14 Mojave 及更高版本

这适用于 Mojave 上的新 Mac App Store

macappstore://apps.apple.com/app/idxxxxxxxxx?action=write-review

如果您也想支持 iOS,请使用此常规链接:

https://apps.apple.com/app/idxxxxxxxxx?action=write-review

将 xxxxxxxxx 替换为您的 App ID。 (可以在 App Store Connect 上找到)

带您到这里:
输入图片此处描述

Apple Pages 的 Swift 代码示例:

https://developer.apple.com/documentation/storekit/skstorereviewcontroller/requesting_app_store_reviews

guard let writeReviewURL = URL(string: "macappstore://apps.apple.com/app/id409201541?action=write-review")
            else { fatalError("Expected a valid URL") }
        
NSWorkspace.shared.open(writeReviewURL)

Apple Pages 的 SwiftUI 示例:

if let appStoreID {
      Link("Rate this app", destination: URL(string: "https://apps.apple.com/app/id\(appStoreID)?action=write-review")!)
    }
}

macOS 10.14 Mojave and up

This works with the new Mac App Store on Mojave

macappstore://apps.apple.com/app/idxxxxxxxxx?action=write-review

If you also want to support iOS as well, use this general link:

https://apps.apple.com/app/idxxxxxxxxx?action=write-review

Replace xxxxxxxxx with your App ID. (can be found on App Store Connect)

Brings you here:
enter image description here

Swift code example for Apple Pages:

https://developer.apple.com/documentation/storekit/skstorereviewcontroller/requesting_app_store_reviews

guard let writeReviewURL = URL(string: "macappstore://apps.apple.com/app/id409201541?action=write-review")
            else { fatalError("Expected a valid URL") }
        
NSWorkspace.shared.open(writeReviewURL)

SwiftUI example for Apple Pages:

if let appStoreID {
      Link("Rate this app", destination: URL(string: "https://apps.apple.com/app/id\(appStoreID)?action=write-review")!)
    }
}
一杯敬自由 2024-10-21 23:13:43

由于 Dave 提供的链接从 OS X Yosemite 开始不再有效,我进行了一些调查,发现了他的链接的更新版本:
macappstore://userpub.itunes.apple.com/WebObjects/MZUserPublishing.woa/wa/addUserReview?id=YOUR_APP_ID&displayable-kind=30

正如戴夫已经提到的,这链接到应用程序的页面并打开“撰写评论”部分。但应用程序商店不会向下滚动到该部分,因此在小屏幕上,用户认为他只是被带到了普通应用程序的页面。因此,我深入挖掘,还发现了那些链接(相同的基本 URL),它们不会返回功能齐全的(App Store)页面,而是返回通常通过应用程序商店内的应用程序页面上的 AJAX 请求调用的内容:

  • /writeUserReview?id=YOUR_APP_ID&displayable-kind=30 – 直接链接到“撰写评论”部分内容
  • /userRateContent?id=YOUR_APP_ID&displayable-kind=30< /code> – 直接链接到“评价此应用程序”5 星评级电话
  • /saveUserReview?displayable-kind=30 - 链接到保存用户评级的页面

注意:在最后两个链接我删除了一些参数,因为否则它们可以用于对任何应用程序(用户已购买)进行评分和评论,而无需用户交互!

我不知道这对某人是否真的有帮助,但我想在这里写下来,因为其他人可能对此感兴趣。

As the link provided by Dave doesn’t work anymore as of OS X Yosemite, I investigated a bit and found this updated version of his link:
macappstore://userpub.itunes.apple.com/WebObjects/MZUserPublishing.woa/wa/addUserReview?id=YOUR_APP_ID&displayable-kind=30.

As Dave already mentioned, this links to the App’s page and opens the "Write a Review" section. But the App Store doesn’t scroll down to the section, so on small screens the user thinks he’s only been taken to the normal App’s page. So I dug a bit deep and also found those links (same base URL), that don’t return a fully functional (App Store) page, but instead return content that is normally called via AJAX requests on an App’s page inside the app store:

  • /writeUserReview?id=YOUR_APP_ID&displayable-kind=30 – links directly to the "Write a Review" section content
  • /userRateContent?id=YOUR_APP_ID&displayable-kind=30 – links directly to the "Rate this App" 5-stars rating call
  • /saveUserReview?displayable-kind=30 - links to the page, that saves user-ratings

Note: On the last two links I removed some parameters, because otherwise they could be used to rate and review any app (the user has bought) without user interaction!

I don’t know if this is really helpful to somebody, but I wanted to write it down here, as somebody else might be interested in this.

失而复得 2024-10-21 23:13:43

要直接链接到 MAS 商店的“撰写评论”部分,请链接到:

macappstore://userpub.itunes.apple.com/WebObjects/MZUserPublishing.woa/wa/addUserReview?id=%d&type=Purple+Software

和将 %d 替换为您的应用程序 ID。

To link directly to the MAS store's "Write a Review" section, link to:

macappstore://userpub.itunes.apple.com/WebObjects/MZUserPublishing.woa/wa/addUserReview?id=%d&type=Purple+Software

and replace %d with your app id.

痴者 2024-10-21 23:13:43

在 iTunes Connect 中的“管理应用程序”下,单击要提供链接的应用程序。应该有一个名为“在 App Store 中查看”的链接。这不行吗?

In iTunes Connect, under Manage Applications, click the app you want to provide a link to. There should be a link called "View In App Store". Wouldn't this work?

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