Skip to main content

SDK Installation

Install guides for every Mubeen SDK · Version 1.5 · October 2026

Every Mubeen integration starts with two things: a site key from your dashboard and a regional backend URL. From there, install the SDK that matches your platform. This page gets you from zero to a working install; the platform guides then walk you through initialization and sending the device ID to your backend.

Prerequisites​

Before installing anything, make sure you have:

RequirementDetails
Site KeyStarts with public_ — obtain from your Mubeen dashboard
Backend URLRegion-specific collection endpoint — https://fp.sa.mubeen.ai (KSA), https://fp.de.mubeen.ai (EU) or https://fp.eg.mubeen.ai (Egypt). Required on every initialization.
Backend URLZain Cloud collection endpoint — https://fp.efm.zaincloud.com.sa. Required on every initialization.
Pick your region up front

The backend_url determines where fingerprint data is collected and stored. Choose the region that matches your data-residency obligations — it is required on every initialization, across all platforms and install flavors.

Zain Cloud deployment — if your keys were issued for the Zain Cloud deployment, use the Zain endpoints instead of the regional ones: fp.efm.zaincloud.com.sa for fingerprint collection and api.efm.zaincloud.com.sa for the API. Everything else in this guide applies unchanged.


Choose Your Platform​

PlatformInstall MethodGuide
Web (plain HTML)CDN <script> tag — no package managerClient-Side Integration (HTML)
React SPACDN <script> tag + useDeviceId hookClient-Side Integration (React)
AndroidMaven Central dependencyAndroid Device Intel
iOSSwift Package ManageriOS Device Intel
FlutterGit dependency in pubspec.yamlFlutter Integration
Backend / serverNo SDK — REST APIServer-Side Integration

Web (Plain HTML)​

The JavaScript SDK ships as a single script served from the Mubeen CDN — there is nothing to install with npm or yarn. Load the script, then start it with your site key and the backend URL for your region:

<script src="https://cdn.mubeen.ai/fp/mub_fp.js" defer></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
mub_fp.init({ site_key: 'YOUR_SITE_KEY', backend_url: 'https://fp.sa.mubeen.ai' });
});
</script>

See Client-Side Integration (HTML) for the quickstart or the SDK Reference for the full API.

React​

React single-page applications use the same CDN script plus a useDeviceId hook that exposes the device ID to your components. No npm package is required. See Client-Side Integration (React).

Android​

Add the dependency to your app's build.gradle.kts:

app/build.gradle.kts
dependencies {
implementation("ai.mubeen:deviceintel-lib:1.7.3")
}
tip

1.7.3 was the latest release at the time of writing. Check Maven Central for the most recent version before integrating.

The library is available on Maven Central — no extra repository setup is needed. Full setup, permissions, and initialization: Android Device Intel.

iOS​

The iOS SDK is distributed as a signed XCFramework via Swift Package Manager. In Xcode: File → Add Package Dependencies…, enter the package URL, and pick the current release:

https://github.com/mubeen-ai/Mubeen-IOS-SDK-public.git

Or in Package.swift:

Package.swift
dependencies: [
.package(url: "https://github.com/mubeen-ai/Mubeen-IOS-SDK-public.git", from: "2.0.0")
]

Configuration and usage: iOS Device Intel.

Flutter​

The mubeen_flutter plugin wraps the Android and iOS SDKs behind one Dart API. It is not published to pub.dev: add it as a git dependency pinned to a release tag. No GitHub account is needed.

pubspec.yaml
dependencies:
mubeen_flutter:
git:
url: https://github.com/mubeen-ai/Mubeen-Flutter-SDK-public.git
ref: v0.1.8

Then run flutter pub get. The plugin needs Flutter 3.44 or later, Android minSdk 24 and an iOS deployment target of 15.0. Apps on Flutter 3.22 to 3.43 use ref: v0.1.8-flutter3.22 instead. Full setup, platform minimums and usage: Flutter Integration.

Backend​

There is no server SDK to install — the backend integrates against the REST API directly with any HTTP client. Start with the Server-Side Integration guide, which includes a cURL quick test you can run before writing any code.


Next Steps​

  1. Client-Side Integration (HTML) — drop the SDK into a web page
  2. Client-Side Integration (React) — integrate into a React SPA
  3. Server-Side Integration — send the device ID with your API requests and read the risk decision