[iOS IAP] SKPaymentTransactionObserver method missing...

Hello :slight_smile:

we are going to publish our game very soon and we have to add App store IAP promotions.

When I go to the page to set up the promotions I get the following message:

You don’t have any in-app purchases available to promote. To make an in-app purchase available to promote, add a promotional image in the App Store Promotion section of the corresponding in-app purchase.

In app purchases are working but we cannot add promotions because of this problem… I saw in another topic, that it should work but it doesn’t for some reason with the current build:  Corona-2017.3184

Did anyone experience the same problem?

Where is that message originating from?  It sounds like you need to add some promotional images to your IAP items in the iTunes Connect portal.

Rob

Thank you for your quick response Rob.

The message is originating from iTunesConnect, there were I set up the IAP’s

I have uploaded a picture but when I go to App Store Promotions it says:

“These in-app purchases can’t be promoted on the App Store because your latest app binary doesn’t include the SKPaymentTransactionObserver method.”

here is a Screenshot:

https://photos.app.goo.gl/sm7b8LefLq8ST4U12

This is very strange, because that method is implemented, and was there since 3107…

Make sure to test that your app handles properly such purchases! This means that you have to init.store as soon as possible and handle purchases regardless what state your app is. To test purchase initiated from appstore, install app from test flight, and follow similar URL on your device:

itms-services://?action=purchaseIntent&bundleId=com.coronalabs.iCloudTestApp&productIdentifier=com.coronalabs.IapTest.pc50

in here, I was testing IAP with product id “com.coronalabs.IapTest.pc50” with my app with bundle “com.coronalabs.iCloudTestApp”.

Here’s Apple’s docs

StackOverflow suggests that it is Apple’s bug. If you test your app and everything works, create radar ticket for it to be resolved. But make sure to test it first!

Why do you need to promote your IAPs… just curious what you think the gain is here?

The idea is that you can run sales on items, like a weekend half off the price bucket of gold bricks without having to update your app.  It also allows people to buy items in the App Store instead of having to buy through your app’s store interface. That way someone can download your game and buy an unlock at the same time.

Rob

I can imagine it being useful quite a bit - for example, if it isn’t a premium currency, but some non-consumable. Like full game unlock. So people can get a full game right from app store without a need to go through your app.

Because our publisher is asking for it and it will increase the chance of getting featured by apple. Also as mentioned before it’s quite nice that people can unlock the full game right away.

Thank you vlads! It works when we’re using the URL you have mentioned! But in itunesconnect there is still the same error. We will contact Apple as suggested in StackOverflow.

Where is that message originating from?  It sounds like you need to add some promotional images to your IAP items in the iTunes Connect portal.

Rob

Thank you for your quick response Rob.

The message is originating from iTunesConnect, there were I set up the IAP’s

I have uploaded a picture but when I go to App Store Promotions it says:

“These in-app purchases can’t be promoted on the App Store because your latest app binary doesn’t include the SKPaymentTransactionObserver method.”

here is a Screenshot:

https://photos.app.goo.gl/sm7b8LefLq8ST4U12

This is very strange, because that method is implemented, and was there since 3107…

Make sure to test that your app handles properly such purchases! This means that you have to init.store as soon as possible and handle purchases regardless what state your app is. To test purchase initiated from appstore, install app from test flight, and follow similar URL on your device:

itms-services://?action=purchaseIntent&bundleId=com.coronalabs.iCloudTestApp&productIdentifier=com.coronalabs.IapTest.pc50

in here, I was testing IAP with product id “com.coronalabs.IapTest.pc50” with my app with bundle “com.coronalabs.iCloudTestApp”.

Here’s Apple’s docs

StackOverflow suggests that it is Apple’s bug. If you test your app and everything works, create radar ticket for it to be resolved. But make sure to test it first!

Why do you need to promote your IAPs… just curious what you think the gain is here?

The idea is that you can run sales on items, like a weekend half off the price bucket of gold bricks without having to update your app.  It also allows people to buy items in the App Store instead of having to buy through your app’s store interface. That way someone can download your game and buy an unlock at the same time.

Rob

I can imagine it being useful quite a bit - for example, if it isn’t a premium currency, but some non-consumable. Like full game unlock. So people can get a full game right from app store without a need to go through your app.

Because our publisher is asking for it and it will increase the chance of getting featured by apple. Also as mentioned before it’s quite nice that people can unlock the full game right away.

Thank you vlads! It works when we’re using the URL you have mentioned! But in itunesconnect there is still the same error. We will contact Apple as suggested in StackOverflow.