Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sign-In Required Popup in-App purchase issue?

I integrate In-App purchase in my App, its working fine for purchase and restoring items. But one issue are there,

When I purchase the item using [email protected], its successfully purchase the item also restore working fine.

Now, I uninstalled apps from my device, also clear credential from iTunes & App Store. and again installed.

When I click on the restore button, then there are two Popup is display : one with [email protected] , and Second one is Exiting or Create user.

Whenever I come from background to foreground, the Sign-In popup is display every time.

NOTE : I HAVE ALSO Call finishTransaction method. But its not work for me.

No One method is Called when Sign-In PopUp display.

enter image description here

How could I resolve this?

like image 749
Kirit Modi Avatar asked Mar 28 '17 09:03

Kirit Modi


People also ask

Why does my Apple ID keep saying sign in required?

Your iPhone says “Apple ID Sign In Requested” because someone (probably you) signed in with your Apple ID on a new device or web browser. When you turn on two-factor authentication, Apple sends a six-digit confirmation code to one of your other “trusted” devices to enter when trying to sign in with your Apple ID.

Why is my in app purchase not working?

If you haven't received an in-app item you bought, try closing and restarting the app or game you're using. Tap Apps or Manage applications (depending on your device, this may be different). Tap the app you used to make your in-app purchase.

What is sign in required on iPhone?

About Sign in with Apple When you see a Sign in with Apple button on a participating app or website, it means you can set up an account using your Apple ID. No need to use a social media account, fill out forms, or choose another new password.


1 Answers

As far as I know, this happens in two cases.

  1. There is a pending transaction. If some purchase transaction haven't finished yet, iOS will try to proceed that transaction automatically.

  2. Some of auto-renewable subscription should be renewed. iOS also automatically start a purchase transaction for auto-renewable transaction, if auto-renew setting is on and subscription is expired.

This is triggered when transaction observer is added to payment queue

[[SKPaymentQueue defaultQueue] addTransactionObserver: yourTransactionObserver]; 

In any case of them, you can put break point in your transaction observer

- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions 

and grasp which transaction is processing.

Basically, SKPaymentQueue has no function to cancel ongoing transaction by the app, so you owe to proceed that transaction.

like image 158
taka Avatar answered Sep 22 '22 20:09

taka