-
Notifications
You must be signed in to change notification settings - Fork 0
Get your own storefront [EXPERIMENTAL]
The SOOMLA project lets you create your own in-app purchasing storefront quickly and easily. We're creating store templates you can use for your own games by just replacing the assets. You can even create your own themes (read Creating a new theme).
In order to use SOOMLA's storefront, we've created another open-source project called storefront. This project is written in html/css/js and contains everything you need for your store's presentation and it works seamlessly with ios-store.
-
Follow ios-store's Getting Started to get it into your game.
-
Clone storefront to your game's resources folder into a folder called "soomla_ui". (make sure you add this folder to the project in XCode)
git clone git@github.com:soomla/storefront.git
-
According to your selected theme, create a JSON file that contains your specific game's definitions and place it in the resources folder. The file must be called 'theme.json'. Your JSON file should look something like this (taken from our storefront-themes/muffinRush Example):
-
When you want to open the store, call StorefrontController's openStoreWithParentViewController with the current UIViewController.
[[StorefrontController getInstance] openStoreWithParentViewController:self];
That's it! Your store will show up when you need it and it'll be connected to the whole in-app billing process.
-
You can see an example JSON in theme.json.
-
A UIViewController that opens the storefront using StorefrontController: StoreExampleViewController.