ios - Canceling login credentials, will call SKPaymentTransactionStatePurchased case -


i implemented iap in app code:

-(void)paymentqueue:(skpaymentqueue *)queue updatedtransactions:(nsarray *)transactions {     (skpaymenttransaction *transaction in transactions)     {         [_loadingindicator startanimating];          switch (transaction.transactionstate) {             case skpaymenttransactionstatepurchased:                 [self unlockpurchase];                 [[skpaymentqueue defaultqueue] finishtransaction:transaction];                 break;                  case skpaymenttransactionstaterestored:                 [self unlockpurchase];                 [[skpaymentqueue defaultqueue] finishtransaction:transaction];                 break;                  case skpaymenttransactionstatefailed:                 nslog(@"transaction failed");                 [[skpaymentqueue defaultqueue] finishtransaction:transaction];                 break;              default:                 break;         }     } } 

when purchase button pressed , alert view pops , asks apple id , password, if user presses cancel button, code goes skpaymenttransactionstatepurchased: case , app unlocks product. wrong code?

i found going on. local iap store tweak cydia running. installed check if possible bypass itunes store tweak , find workaround prevent , forgot turn off.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -