Parental Gate Required for Promoted In-app Purchase from App Store. How Can I Implement This?

Hello,

I recently received this rejection from app for an app in the kids category:

"To clarify, when the user taps a promoted in-app purchase product on the App Store, the in-app purchase flow within the app is not behind a parental gate.

Please ensure that parental gate is available when users initiate the IAP, even from promoted in-app purchase product on the App Store."

My app is in the kids category and requires a parental gate for IAPs.  When it is tapped from the app store promoted IAP, it goes into the app and asks to make the purchase.  I some how need to have a parental gate with this.  Is it possible?

Thanks!

Wait, what?

You’re saying you’ve got some kind of store feed in your app that sells apple’s apps, but they want you to catch clicks on these items and re-direct to a child gate?

I don’t think that is possible unless… thinking…

How are you showing the the ‘store content’  is this via a plugin?  If, “Yes,” and if that plugin/provider has a callback system you might be able to redirect it to a local handler and pop-up a gate.  This would be pretty convoluted though.

I think easier would be to put a gate before the store. i.e. Add a child gate before you show the store itself.

Not a store feed in the app.  Apple now allows you to promote your IAP in the App Store as of iOS 11.  It apparently becomes searchable in the App Store and also shows on your product page.  If someone taps on the IAP in your product page (example of what it looks like below), it immediately opens the app and prompts the user to purchase it.

promote-hero-large.png

The issue is Im not sure if there is a way to get parental gate in front of this as Im unsure how Corona is handling it.

You might be able to use the system events to detect when the app starts or resumes and if you get a transaction event and you’re just starting/resuming, you might be able to show a parental gate.

Rob

I agree with Rob.  Also don’t forget to check the launch args to see if there is useful info there.

You can do so by adding this line in main.lua:

local launchArgs = ...

If launchArgs is not nil, it will contain a table of details passed from the OS.  In this data, may be info about the launch from store. At the least you can give it a try to see what is in it.

Cheers,

Ed

PS - Please update us as you find out more.  This is very interesting.

Here is some useful help https://developer.apple.com/app-store/parental-gates/

Wait, what?

You’re saying you’ve got some kind of store feed in your app that sells apple’s apps, but they want you to catch clicks on these items and re-direct to a child gate?

I don’t think that is possible unless… thinking…

How are you showing the the ‘store content’  is this via a plugin?  If, “Yes,” and if that plugin/provider has a callback system you might be able to redirect it to a local handler and pop-up a gate.  This would be pretty convoluted though.

I think easier would be to put a gate before the store. i.e. Add a child gate before you show the store itself.

Not a store feed in the app.  Apple now allows you to promote your IAP in the App Store as of iOS 11.  It apparently becomes searchable in the App Store and also shows on your product page.  If someone taps on the IAP in your product page (example of what it looks like below), it immediately opens the app and prompts the user to purchase it.

promote-hero-large.png

The issue is Im not sure if there is a way to get parental gate in front of this as Im unsure how Corona is handling it.

You might be able to use the system events to detect when the app starts or resumes and if you get a transaction event and you’re just starting/resuming, you might be able to show a parental gate.

Rob

I agree with Rob.  Also don’t forget to check the launch args to see if there is useful info there.

You can do so by adding this line in main.lua:

local launchArgs = ...

If launchArgs is not nil, it will contain a table of details passed from the OS.  In this data, may be info about the launch from store. At the least you can give it a try to see what is in it.

Cheers,

Ed

PS - Please update us as you find out more.  This is very interesting.

Here is some useful help https://developer.apple.com/app-store/parental-gates/