小编See*_*Sea的帖子

iOS IAP不能在ipv6上工作

我在Appstore中有一款iPhone游戏,我最近尝试使用最新的Xcode上传更新的版本,但它被拒绝了,因为inApp-buying不支持ipv6网络.它与ipv4网络一起工作正常.

//
//  ViewController.m
//

NSMutableArray * arrayOfSection;
NSMutableArray * sectionHeaders;
NSString *error;

#import "CoinsController.h"
#import "NSString+SBJSON.h"

#import <CommonCrypto/CommonDigest.h>

@implementation CoinsController

@synthesize bkg;

-(void) callPurchaseId:(NSString*)iapId amount:(NSUInteger)ncoins{
    SKPayment *payment = [SKPayment paymentWithProductIdentifier:iapId];
    //[[SKPaymentQueue defaultQueue] addTransactionObserver:self];
    [[SKPaymentQueue defaultQueue] addPayment:payment];

    [UIView setAnimationDuration:0.5];
    [UIView setAnimationDelegate:self];
    [UIView setAnimationDidStopSelector:@selector(fadeOut:finished:context:)];
    viewLoading.alpha = 0.9;
    [UIView commitAnimations];
    loadingtext.text = @"Processing Purchase";
    NSLog(@"Processing Purhcase");

    //    currentGem = [NSString stringWithFormat:@"vegas%@", @"80k"];
    [CommonUtilities encryptString:[NSString stringWithFormat:@"%lu", (unsigned long)ncoins]:@"c"];

    NSLog(@"Processing");
}
- (IBAction)purchaseCoins:(id)sender{

    UIButton *button = (UIButton *)sender;

    NSLog(@"%li", (long)button.tag);
    switch (button.tag) {
        case …
Run Code Online (Sandbox Code Playgroud)

xcode objective-c ipv6 in-app-purchase ios

6
推荐指数
1
解决办法
2142
查看次数

标签 统计

in-app-purchase ×1

ios ×1

ipv6 ×1

objective-c ×1

xcode ×1