ios - Sandbox environment asks for sign in twice -


i testing in-app purchases new version of our app, in-app purchase code tested before , working ok asks itunes sign-in twice before purchase confirmation alert. still works fine , purchases item correctly after double sign-in little bit disturbing. did have similar issue lately sandbox servers?

to give more info actual transaction verification happens on our server, i'm using rmstore default dummy verification on client side, nothing checks if productid exists in app receipt, cool side refreshes app receipt if nil or productid not exist in receipt. there auto-renewing subscriptions in our app, , logout appstore before testing new purchase.

this how code looks like:

-(void) paymentqueue:(skpaymentqueue *)queue updatedtransactions:(nsarray *)transactions {     (skpaymenttransaction * transaction in transactions) {         switch (transaction.transactionstate)         {             case skpaymenttransactionstatepurchased:             {                 rmstoreappreceiptverificator *verificator = [rmstoreappreceiptverificator new];                  [verificator verifytransaction:transaction success:^{                      nsurl *receipturl = [[nsbundle mainbundle] appstorereceipturl];                      nsdata *receipt = [nsdata datawithcontentsofurl:receipturl];                     nsstring *receiptstr = [receipt base64encodedstringwithoptions:kniloptions];                     [self sendreceipttoserver:receiptstr];                 }                 failure:^(nserror *error) {                      ...                 }];             }                 break;             case ... : ...             default: ...         }     }; } 

to login work have logout of settings > itunes. login when app prompts using test account (created on itunes connect).


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -