[ad_1]
A while in the past, I developed and printed an iOS App wherein I provide subscriptions that I validate on server facet.
On server facet I accurately register the entry privileges of a consumer based on the subscription that server obtain from the App (Apple Retailer). First server validating the receipt from the App with the Apple Retailer and verify all the things is appropriate.
Earlier than presenting the record of subscriptions within the App the consumer should register and log in after which select a subscription. The consumer’s e-mail is shipped to the server together with their buy receipt. We want consumer e-mail to determine the consumer in our database and assign the subscription.
We now want so as to add to the App processing OFFER CODES {that a} consumer might have redeemed on the Apple Retailer, exterior of the App.
Apple advises to create the SKPaymentTransactionObserver firstly of the App startup to obtain these attainable subscriptions from exterior the App.
But when my App wants the consumer to be registered and logged in, that occasion may arrive from the cost queue (PaymentQueue) however because the consumer isn’t logged in, the acquisition can’t be assigned.
I have been looking for a very long time and I am disoriented amongst a lot data.
Might somebody who is aware of one thing information me on the best path on easy methods to implement these conditions?
Any minimal clue that helps me proceed might be very legitimate, somebody who has already confronted this, I’d tremendously respect it.
[ad_2]
