Skip to main content
The WebView integration lets you embed the full LearnInk learning experience directly inside your existing mobile app. Rather than asking users to download a separate app, they access their training from within the app they already use every day — whether that’s a field agent tool, an onboarding app, or an internal employee platform. Example of LearnInk embedded in a mobile app WebView.

Before you start

Make sure you have the following from LearnInk before beginning your integration:
  • ✅ Your API key — used by your backend to call the Identify API. Generate and rotate API keys in the LearnInk admin portal (Settings → Developers → API Keys). If your organisation doesn’t have access to this feature, contact support@learn.ink.
  • ✅ Your org ID — your organisation’s unique identifier, used in the WebView URL. This is set at account creation.
  • ✅ Access to the staging environment — for testing your integration before going live. Request access from support@learn.ink if needed.

Why use a WebView integration?

The alternative to a WebView integration is directing users to the standalone LearnInk app. For many organisations, that’s a friction point: users need to download a separate app, remember separate login credentials, and switch context to complete their training. Completion rates suffer. With the WebView integration:
  • Users never leave your app
  • There’s no separate login — users are authenticated automatically and silently via the Identify API
  • You control the entry point, the navigation, and the framing of the experience
  • The close button inside the WebView sends a message back to your app, so your UI stays in control

How it works

The flow on each app open looks like this:
  1. The user navigates to the training section of your app
  2. Your app requests a sign-in token from your backend
  3. Your backend calls the LearnInk Identify API with the user’s ID and your API key
  4. LearnInk returns a short-lived token (and creates the user if they don’t yet exist)
  5. Your app loads the LearnInk WebView with the token in the URL — the user is signed in automatically
The WebView communicates back to your app via post messages — for example, when the user taps the close button, or when their session expires and a new token is needed.

Don’t forget: push notifications

Users in the LearnInk WebView cannot receive push notifications directly — the WebView has no access to your app’s notification infrastructure. LearnInk sends notification events (scheduled reminders, new training assignments, etc.) via webhook, and your app is responsible for forwarding these to users. If you don’t set up the webhook notification flow, users will silently miss reminders and training assignments.

Push notifications setup guide

Learn how to receive LearnInk notification events via webhook and forward them to users as push notifications.

What you’ll need to build

There are two parts to the implementation:

WebView setup guide

Step-by-step instructions for implementing your backend token endpoint and the mobile WebView screen (including close + session refresh).
Once both are in place, see the sample code for your framework:

React Native

JavaScript & TypeScript

Flutter

Dart

Kotlin

Native Android