InAppPurchase停止删除并重新安装应用程序后,接到productRequest响应 [英] InAppPurchase stop receiving the productRequest response after deleting and reinstalling app
问题描述
EDIT3:解决
inAppPurchase不能在越狱设备上工作! (至少在沙盒测试)
inAppPurchase doesn't work on jailbreak devices! (at least the sandbox testing)
EDIT2:现在我知道为什么反应没有得到通过:这是对iPhone的网络故障。 的当网络连接已经建立,但不通过任何数据productRequest从来没有得到的回应让。的
Now I know why the response wasn't getting through: It was a network malfunction on the iPhone. When the network connection is up but not getting through any data the productRequest never gets a response.
同时我还得到一个无效的产品ID。任何帮助吗?
Meanwhile I'm still getting an invalid product ID. Any help?
编辑:更新:试图增加新的测试用户帐户,并使用他们(和删除/过重新安装应用程序,并在我现在得到无效的产品...)什么是错后?缺少了什么?
Update: After trying adding new test user accounts and using them (and deleting/reinstalling the app over and over I now get Invalid Product...) What's wrong? What's missing?
我想implemente inAppPurchase系统和它一直是一个痛苦!
I'm trying to implemente inAppPurchase system and it's been a pain!
请获取无效产品的ID后,我通过下面的列表:
After keep getting invalid product ID's I went through the following list:
[选中]是否启用应用内为你的App ID购买?
[CHECKED] Have you enabled In-App Purchases for your App ID?
[选中]您已检查可销售你的产品?
[CHECKED] Have you checked Cleared for Sale for your product?
[选中]你有没有提交(可选择拒绝)您的应用程序二进制?
[CHECKED] Have you submitted (and optionally rejected) your application binary?
[选中]请问你的项目的.plist包ID匹配您的应用程序ID?
[CHECKED] Does your project’s .plist Bundle ID match your App ID?
[选中]你已经生成并安装了新的App ID的新供应配置文件?
[CHECKED] Have you generated and installed a new provisioning profile for the new App ID?
[选中]你有没有配置您的项目以code标志使用这种新的供应配置文件?
[CHECKED] Have you configured your project to code sign using this new provisioning profile?
[选中]你对构建iPhone OS 3.0或以上?
[CHECKED] Are you building for iPhone OS 3.0 or above?
您作出SKProductRequest时,在使用完整的产品ID [选中]?
[CHECKED] Are you using the full product ID when when making an SKProductRequest?
[选中 - 现在一个星期]你有没有因为加入您的产品iTunes Connect中等待了几个小时。
[CHECKED - a week now] Have you waited several hours since adding your product to iTunes Connect?
[选中 - 收到的付款]是你的银行信息活跃在iTunes Connect中? (通过标记)
[CHECKED - received payments] Are your bank details active on iTunes Connect? (via Mark)
[这是哪里出了问题相比发生]您是否尝试删除设备中的应用程序并重新安装?(通过赫克托,S3B,亚历克斯0,乔,阿尔贝托)
[THIS is where the problem arised] Have you tried deleting the app from your device and reinstalling? (via Hector, S3B, Alex O, Joe, and Alberto)
---->现在委托似乎没有工作....?我没有得到我的@didReceiveResponse在控制台上,但我得到了@点击和处理(code以下)
----> And now the delegate doesn't seem to work....?? I don't get my @"didReceiveResponse" on the console but i do get the @"clicked and handling" (Code below)
@implementation InAppHandler
- (void)requestProUpgradeProductData
{
NSLog(@"clicked and handling");
NSSet *productIdentifiers = [NSSet setWithObject:@"pastedFromiTunesConnect"];
productsRequest = [[SKProductsRequest alloc] initWithProductIdentifiers:productIdentifiers];
productsRequest.delegate = self;
[productsRequest start];
// we will release the request object in the delegate callback
}
#pragma mark -
#pragma mark SKProductsRequestDelegate methods
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response
{
NSLog(@"didReceiveResponse");
NSArray *products = response.products;
proUpgradeProduct = [products count] == 1 ? [[products objectAtIndex:0] retain] : nil;
if (proUpgradeProduct)
{
NSLog(@"Product title: %@" , proUpgradeProduct.localizedTitle);
NSLog(@"Product description: %@" , proUpgradeProduct.localizedDescription);
NSLog(@"Product price: %@" , proUpgradeProduct.price);
NSLog(@"Product id: %@" , proUpgradeProduct.productIdentifier);
}
for (NSString *invalidProductId in response.invalidProductIdentifiers)
{
NSLog(@"Invalid product id: %@" , invalidProductId);
}
// finally release the reqest we alloc/init’ed in requestProUpgradeProductData
[productsRequest release];
[[NSNotificationCenter defaultCenter] postNotificationName:kInAppPurchaseManagerProductsFetchedNotification object:self userInfo:nil];
}
@end
由于人有此之前?谢谢!
As anyone got this before? Thanks!
推荐答案
inAppPurchase并不能在一些越狱设备上工作(似乎可以有一些与的AppSync做)! (沙盒测试不工作即是)
inAppPurchase doesn't work on some jailbreak devices (seems that can have something to do with AppSync)! (the sandbox testing doesn't work that is)
这篇关于InAppPurchase停止删除并重新安装应用程序后,接到productRequest响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!