1

Would it be possible to add inapp purchase inside extensions in iOS 8? For example, a custom keyboard may have free and pro versions based on inapp purchase.

Thanks a lot in advance.

1
  • You should probably handle in-app purchases in the app itself, as the name suggests.
    – Andrew
    Commented Jul 9, 2014 at 3:16

1 Answer 1

1

The custom keyboard requires a container app anyhow, it would probably be a good idea to do it there. You could likely have UI on your keyboard interface to link to the app via openURL: directing users on how to purchase the "Pro" version. With that said, you can tell which APIs are not accessible if they are annotated with the NS_EXTENSION_UNAVAILABLE_IOS macro. You can see this on [UIApplication sharedApplication] as an example. If none of the StoreKit APIs you need to perform the purchase are marked as unavailable, it's likely that you'll be able to get it done within the extension.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.