【问题标题】:Disable Apple Pay UI when 13.56Mhz detection检测到 13.56Mhz 时禁用 Apple Pay UI
【发布时间】:2016-01-01 21:49:54
【问题描述】:

我知道 iOS 9 中有特定的new method 支持针对特定场景或用例的 Apple Pay 抑制。我有一个需要用以下方法申请:

+ (PKSuppressionRequestToken)requestAutomaticPassPresentationSuppressionWithResponseHandler:(void (^ _Nonnull)(PKAutomaticPassPresentationSuppressionResult result))responseHandler

但是,每次我们调用此方法时,都会得到以下响应:PKAutomaticPassPresentationSuppressionResultDenied (Either the user prevented the suppression, or an internal error occurred)

在文档中标记为重要注意事项:

重要 此方法需要 Apple 颁发的特殊权利。 如果权利不存在,则请求将失败并返回 PKAutomaticPassPresentationSuppressionResultNotSupported 结果。为了 更多信息,请参阅 developer.apple.com/apple-pay/。

我们应该怎么做才能得到PKAutomaticPassPresentationSuppressionResultSuccess的结果?我们在“Apple ID”中启用了 Apple Pay,甚至创建了 Merchand ID,然后再次下载了包含所有这些并包含在项目中的 Development Provisioning Profile。我们也在那里启用了“Apple Pay”功能,但我们仍然收到PKAutomaticPassPresentationSuppressionResultDenied 错误。

测试环境信息:

  • 带有支持 Apple Pay 的卡的 iPhone 6
  • iOS 9.0.1 (13A404)

谢谢大家

【问题讨论】:

    标签: ios objective-c iphone applepay


    【解决方案1】:

    在向 Apple 开发者技术支持 (DTS) 提出私人查询后,他们告诉我,我必须为此目的通过电子邮件申请特定权利。在那封电子邮件中,我必须证明我为什么要使用这个 PassKit 功能以及如何使用它。

    一旦他们提供了此权利(几周后),只需将其添加到我们的配置文件中,requestAutomaticPassPresentationSuppressionWithResponseHandler 方法就可以毫无问题地工作。

    【讨论】:

    • 我怎样才能私下联系到你?我想知道更多细节。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-10-23
    • 2016-05-30
    • 1970-01-01
    • 2021-02-02
    • 2019-03-15
    • 2016-08-02
    • 1970-01-01
    相关资源
    最近更新 更多