Example App
A sample app showcasing OnsideKit features: login, fetching products, making purchases, and restoring purchases — as a reference implementation.
The sample app is a small, focused project that demonstrates the core OnsideKit flows end to end. It's a good starting point for seeing how the pieces fit together in a real project.
What it demonstrates
User authentication
Onside.requestLogin / on-demand login
Fetching products
Making a purchase
Restoring purchases
Required setup
The app won't run correctly until you complete two steps:
Bundle Identifier — the app's Bundle ID in Xcode must match the one you registered in the Onside Developer Console.
Product identifiers — add your product identifiers in
ProductsRepository.swift, so the app can fetch your products.
The app also initializes OnsideKit at launch, as every integration must — see Initializing the SDK. Out of the box it calls Onside.initialize(storeKitConfigurationName: "Example"), which runs against the bundled Example.storekit file in local-testing mode; switch to Onside.initialize() in AppDelegate.swift to talk to the Onside backend with your own products. It integrates the full OnsideKit product; see OnsideKit vs OnsideKitLite if you need the PassKit-free build.
Full instructions are in the Example README.
Last updated
Was this helpful?