Closed ArtSabintsev closed 5 years ago
The In-App-Purchase transaction should be always observed after your app launched.
If you have no special reason, I recommend to call addTransactionObserver
in didFinishLaunchingWithOptions
of AppDelegate
, and not to remove the observer during your app running.
Thanks for the sample code to help me understand your issue!
No problem! Thank you, I’ll try in the morning!
Do I need to retain IAP.default in the AppDelegate, or does the Singleton self retain after calling it once?
Sent with GitHawk
The latter is right.
InAppPurchase.default
is a shared singleton instance.
ok, that fixed it - thank you!
Describe the bug Neither the
success
nor thefailure
are called. I've completed a successful purchase many times, but I can't do anything after the purchase has completed.To Reproduce My sample code.
Is something wrong my code?
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):