iOS11 Storekit In-App from Apple Store

Hi,


I try to manage the new feature from iOS11 that able us to buy in-app directly from the Apple Store trough the new Storekit function :

https://developer.apple.com/documentation/storekit/skpaymenttransactionobserver/2877502-paymentqueue?changes=latest_minor&language=objc

paymentQueue:shouldAddStorePayment:forProduct:



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 trough 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> *)options


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.


ps :

Our problem is to avoid interstitial ad to show when the app is waking up by in-app purchase bought from the Apple Store.

Hey,


I've been trying to find information regarding promoted IAPs as well but documentation seems a little all over the place.


For question 1) I believe the answer is no. I've seen other people asking similar questions but no one able to show that they can detect the app start came from the store.


For question 2) If you return true from the delegate, then it will show just as the app starts. If you return false, it will only occour when you put the purchase on to the queue, and if you do not then the purchase is essentially cancelled. This apple documentation on promoted iaps seems to cover these cases.


From my side I'm curious if you've had any luck testing this in the recent Betas (XCode 9, iOS11 Beta 4). No matter what I've tried we haven't been able to get the app to respond to the itms-service:// links?


Thanks,


Sy

Hi,


Yes the the itms-services://?action=purchaseIntent&bundleId=your_bundle_id&productIdentifier=your_product_identifier works.


XCode Version 9.0 beta 3, device on iOS 11.0 latest beta


Thank you for your response !

🙂

I see implementing this new SKPaymentTransactionObserver method is required for the new detailed IAPs to actually show up on the App Store. Does anybody know whether we must also build with the iOS 11 SDK for that to work? I mean it's just a protocol method implementation. So "theoretically" it could also work when building with iOS 10 SDK.


Because you know, there are often still issues with major new iOS SDK releases (in the first couple weeks at least).

Did you get an answer to your question? We're having issues with SKPaymentTransactionObserver method also.

iOS11 Storekit In-App from Apple Store
 
 
Q