I want to enable In App Purchase for my an application. The type of purchase is Non-Consumable and I mark Host Content with Apple. When I want to host content with Apple I need to provide Hosted Content Package. I can not find more information what should be inside this content package. Except that it should be not bigger than 2GB and extension should be .pkg.
How I could create Content Package for it? What should be inside it?
How I can create an In-App purchase content package in Xcode (with a .pkg file extension)?
When a hosted app is launched, the result is that the host is then running under the identity of the hosted app package, so it can load visual assets, content from the Hosted App package location, and when it calls APIs it does so with the identity declared in the Hosted App.
By itself, it is just a file and does not have any way to appear as an app to Windows. With the Hosted App Model, an app can declare itself as a host, and then packages can declare a dependency upon that host and are known as hosted apps.
A hosted app must declare a package dependency upon the host, and specify the HostId to use. If the package is unsigned, it must include the Unsigned Publisher OID to ensure the package identity does not conflict with a signed package.
App extensions enable your app to host content provided by other apps. Discover, enumerate, and access read-only content from those apps. If an app supports extensions, any developer can submit an extension for the app. Thus, the host app needs to be robust when it loads an extension that it hasn't been pre-tested with.
To create In-App Purchase content package: File -> New -> Project... -> Other (iOS) -> In-App Purchase Content. New project will be created.
Put data to this project and choose: Product -> Archive. When archive is done choose Distribute....
And you are done.
Very detailed explanation is written here: In-App Purchase example
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With