SKProductsRequest 委托方法永远不会被调用

编程入门 行业动态 更新时间:2024-10-28 14:21:51
本文介绍了SKProductsRequest 委托方法永远不会被调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

这曾经对我有用,但现在不再有用了,我不知道为什么.我的应用中有应用内购买设置.我确认我有一组正确的产品标识符,与 itunesconnect 中相应的应用内购买项目相匹配.呼叫转到 Apple 视图 [productRequest start],但我从未收到回复,尽管我将委托设置为我自己.我错过了什么?

This used to work for me but is now not working anymore and I can't figure out why. I have in-app purchase setup in my app. I confirmed that I have a correct set of product identifiers, matched by corresponding in-app purchase items in itunesconnect. The call goes out to Apple view [productRequest start], but I never get a response back, despite setting the delegate to myself. What am I missing?

NSLog(@"productIdentifiersSet: %@", productIdentifiersSet); if ([productIdentifiersSet count]) { SKProductsRequest *productRequest = [[SKProductsRequest alloc] initWithProductIdentifiers:productIdentifiersSet]; [productRequest setDelegate:self]; [productRequest start]; }

…………

- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response { <never called> } - (void)requestDidFinish:(SKRequest *)request { <never called> } - (void)request:(SKRequest *)request didFailWithError:(NSError *)error { <never called> }

推荐答案

我今天也遇到了同样的问题.早上我的代码正常工作,下午它没有工作 3-4 小时.我花了我所有的时间,尝试了很多事情.但不久前,它开始自己工作.我没有改变任何东西.

The same problem happened to me today. In the morning my code was working, in the afternoon it didn't work for 3-4 hours. I spent all of my time and tried many things. But a little time before, it started working itself. I didn't change anything.

我想我们不能信任苹果服务器.

I suppose we can't trust apple servers about that..

更多推荐

SKProductsRequest 委托方法永远不会被调用

本文发布于:2023-11-08 09:43:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1569033.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:永远不会   方法   SKProductsRequest

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!