应用内购买无法购买,原因不明
我在我的应用程序中实现了应用程序购买并发布了。 但我有时(并非总是)无法在我的应用程序中购买产品。
我有 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.
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??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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一旦购买失败,使用打印错误描述
[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!