应用内购买无法购买,原因不明

发布于 2024-11-25 09:08:17 字数 1419 浏览 0 评论 0原文

我在我的应用程序中实现了应用程序购买并发布了。 但我有时(并非总是)无法在我的应用程序中购买产品。

我有 2 个问题。

  1. 什么情况会发生?

    我测试了我的应用程序,但它没有发生。 万一发生怎么办?你有类似的经历吗?

  2. “:transaction:180000012369078 - 1”是什么意思?

    这是我的设备在管理器上的日志。 成功后,交易编号为“1”并且 失败时,事务编号为“2”。 而且成功和失败的格式也不一样。

paist 我的日志

成功

Jul 21 12:06:05 unknown adhoc[4714] <Warning>: transaction: (null) - 0
Jul 21 12:06:05 unknown adhoc[4714] <Warning>: purchasing
Jul 21 12:06:18 unknown adhoc[4714] <Warning>: transaction: 180000012369078 - 1
Jul 21 12:06:18 unknown adhoc[4714] <Warning>: purchased

失败

Jul 20 19:50:41 unknown adhoc[2202] <Warning>: transaction: (null) - 0
Jul 20 19:50:41 unknown adhoc[2202] <Warning>: purchasing
Jul 20 19:50:41 unknown itunesstored[2273] <Notice>: MS:Notice: Installing: com.apple.itunesstored [itunesstored] (550.58)
Jul 20 19:50:41 unknown itunesstored[2273] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/Activator.dylib
Jul 20 19:50:44 unknown itdbprepserver[2270] <Warning>: Running Create Triggers...
Jul 20 19:50:46 unknown adhoc[2202] <Warning>: transaction: 70AAEAAE-22DF-4927-A6FA-4ECF4783619D - 2
Jul 20 19:50:46 unknown adhoc[2202] <Warning>: failed
Jul 20 19:50:46 unknown adhoc[2202] <Warning>: unkwown

请帮忙。谢谢。

I implemented in app purchase in my app and released.
But I failed to purchase product in my app SOMETIMES (not all time).

I have 2 questions.

  1. What of case it will happen??

    I test my app, but it haven't occurred.
    What in case it will happen?? Do you have any similar experiences??

  2. How does ": transaction: 180000012369078 - 1" mean?

    This is my device's log at organizer.
    On success, transaction has number "1" and
    On failure, transaction has number "2".
    And formats is not same between on success and failure.

paist my log

On success

Jul 21 12:06:05 unknown adhoc[4714] <Warning>: transaction: (null) - 0
Jul 21 12:06:05 unknown adhoc[4714] <Warning>: purchasing
Jul 21 12:06:18 unknown adhoc[4714] <Warning>: transaction: 180000012369078 - 1
Jul 21 12:06:18 unknown adhoc[4714] <Warning>: purchased

On failure

Jul 20 19:50:41 unknown adhoc[2202] <Warning>: transaction: (null) - 0
Jul 20 19:50:41 unknown adhoc[2202] <Warning>: purchasing
Jul 20 19:50:41 unknown itunesstored[2273] <Notice>: MS:Notice: Installing: com.apple.itunesstored [itunesstored] (550.58)
Jul 20 19:50:41 unknown itunesstored[2273] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/Activator.dylib
Jul 20 19:50:44 unknown itdbprepserver[2270] <Warning>: Running Create Triggers...
Jul 20 19:50:46 unknown adhoc[2202] <Warning>: transaction: 70AAEAAE-22DF-4927-A6FA-4ECF4783619D - 2
Jul 20 19:50:46 unknown adhoc[2202] <Warning>: failed
Jul 20 19:50:46 unknown adhoc[2202] <Warning>: unkwown

Please help. thank you.

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

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

发布评论

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

评论(1

╰ゝ天使的微笑 2024-12-02 09:08:17

一旦购买失败,使用打印错误描述
[transaction.error localizedDescription];

它可能会失败,因为 wifi 连接很弱,并且它会退出并显示错误:无法连接到 iTunes Store 的描述。

如果出现此错误,请重置设备中的所有设置。我就是这样解决的!

Once the purchase has failed, print the error description using
[transaction.error localisedDescription];.

It may fail because the wifi connection is weak, and it bails out with the description Error : Cannot Connect to iTunes Store.

Reset all settings in your device if this is the error. I solved it like that!

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