Starting from iOS 11, Apple Introduced a feature to Buy the In App purchase from App Store App.
Problem: Our problem is to avoid interstitial ad to show when the app is waking up by in-app purchase bought from the App Store App.
I am trying to manage it through the new Storekit function :
- (BOOL)paymentQueue:(SKPaymentQueue *)queue shouldAddStorePayment:(SKPayment *)payment forProduct:(SKProduct *)product
I have two questions :
1- I would like to know if we can detect before this method is called the fact that in-app is bought from the Apple Store in one of the function below through the
launchOptions parameters ? :
- (BOOL)application:(UIApplication *)application willFinishLaunchingWithOptions:(NSDictionary *)launchOptions
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)launchOptions
2 - When we return YES or NO (and add ourself the payment to the queue) to the
- (BOOL)paymentQueue:(SKPaymentQueue *)queue shouldAddStorePayment:(SKPayment *)payment forProduct:(SKProduct *)product
when exactly will we see the new in-app popup ?
Thank you for any response.