Skip to content
Get API access

Mobile SDKs overview

The Grona mobile SDKs let Grona personalise screens inside your existing Android and iOS apps. You add placements to your screens once and ship one release. After that, what fills each placement, for which shoppers and against which control group is set up with Grona, not in app code. Read this page first to understand what the SDKs do and what your app has to provide.

  1. Get access. Email support@grona.ai. Grona gives you access and your app’s Grona settings.

  2. Install and initialise the SDK. See Install (Android) or Install (iOS), then Initialise (Android) or Initialise (iOS).

  3. Add a slot to a screen. See Render components (Android) or Render components (iOS).

  4. Forward basket and purchase events so Grona can measure results. See Track events (Android) or Track events (iOS).

For a guided first run, follow the Android quickstart or the iOS quickstart.

Grona sets up campaigns with you, such as which banner or offer to show and to whom. Once your app has the SDK, new campaigns need no app release.

The SDK runs on the device. It applies your campaign configuration, decides which campaign each placement shows and which group the shopper is in, shows or hands over the result, and records events for analysis.

  • Configuration from Grona. The SDK only applies configuration Grona published for your app, and keeps using the last good copy if the network is down. See Configuration and keys.
  • Decisions on the device. Audience rules read the basket, the current screen, the shopper’s context and, for identified customers, a profile your app supplies. A shopper gets the same variant every time, and on both Android and iOS in campaigns that target customers. See Variants and holdouts.
  • Fair measurement. Grona measures shoppers who don’t see the campaign in the same way as those who do, so results are fair. See Events and exposure.
  • Money verified on the server. An offer that carries a reward shows only when Grona has approved it for that shopper, and your order backend checks that approval before applying anything. See Offers and grants.
  • Fail safe. Apart from rejecting invalid options when you build them, the SDK never throws into your app. An error the SDK handles ends in an empty placement or a missing offer, never a blocked order.

Each campaign renders in one of two ways. You can mix them in one app, placement by placement.

  • SDK-rendered components. You add a slot view to your layout. Grona draws a native banner, progress bar, offer or message inside it, styled with your app’s fonts and colours. See Grona components.
  • Host-rendered decisions. You ask for a decision for a placement and draw the result with your own product cells, prices and stock. Grona tells you which products to show and with what title. Decisions are product rails, bundles, single product cards and out-of-stock substitutes.

Rendering modes compares the two and helps you choose.

The SDK never reaches into your app’s code or data on its own. Your app gives it what it needs:

  • A host implementation. Your app answers product lookups (name, price, stock, image) from memory, adds lines to the basket, replaces a basket line, and opens typed routes such as a product or category screen with your own router. The SDK calls these on the main thread only.
  • State pushes. Your app pushes the basket whenever it changes, the shopper’s context (locale, store branch and delivery type), the opaque customer id when a shopper signs in, an optional profile from your authenticated session, and the shopper’s consent.
  • Commerce events. Your app forwards product views, basket changes, checkout starts and purchases, so Grona can measure outcomes.
  • Your app’s Grona settings. Grona gives you these when you get access. See Initialise the SDK for Android or iOS.
  • A backend for offers. If you run offers with a reward, your backend fetches grants for the signed-in shopper and checks them again when the order is placed. See Backend integration overview.
Platform Minimum version
Android Android 7.0 (API level 24) or later
iOS iOS 16 or later

Both SDKs work the same way. Each platform’s pages note the few differences.