I've tried to add a working inApp purchase view inside an Action Extension.
As you know, in Action Extension we have 2 targets, one is the normal App (the app you can download from app store), and the second one the extension.
The view inApp purchase, works in the normal app (first target) but doesn't work in the extension target, I mean the loading purchase product is loop running without found the purchase product. I've also opened API for the extension target (no restricted API) on building setting. Any one know how to do?
I think you can do it in different way ! instead of trying to use in-App purchase on Action Extension itself make the app checking on
UserDefaultwith AppGroup ! .This will help you on how to share
UserDefaultwith App Extension by using it with AppGroupThat mean the user Must use the app first then when the user make the purchased , you will change value from
falsetotrueand save it toUserDefaultthen when the user using the Action Extension you will check the
UserDefaultif the value changed totruethen the user can use the Action ExtensionBTW : I remembered reading about Apple will rejected the app if the App Extension didn't do any functions ! So I think you need to add some limitation if the user didn't purchased and remove the limitation after purchased
I hope this help you