Sanad SDK
Add the Sanad SDK to your Android app, iOS app or website.
The Sanad SDK runs inside your app or website. It opens a session with Lean, reads technical signals from the device in the background and sends them to Lean, so your backend can get the session's assessment. Your app only starts the SDK, asks it to collect again before sensitive actions, and passes the session id to your backend.
The SDK is available for three platforms:
| Platform | Package | Minimum version |
|---|---|---|
| Android | me.leantech.device:lean-device-android | Android 8.0 (API level 26) |
| iOS | Swift package LeanDevice | iOS 16 |
| Web | Loader script from sanad.leantech.me | Any modern browser |
All three work the same way: the same three calls (init, named initialize on iOS, then collect and diagnostics), the same session rules and the same error codes. Use one SDK key in all your builds, so Lean assesses your app and website sessions together.
You need an SDK key before you start: see Getting started.
Updated about 3 hours ago
