Developer SDK · v1.0.0

Ship authenticated scanning into every app you build.

One Android SDK for GS1 Digital Link decoding, cryptographic verification and geofenced diversion intelligence — with thin bindings for Kotlin, Java, React Native, Flutter and Ionic.

  • JitPack live
  • Android 6.0+
  • Sub-80 ms decode
  • Server-authoritative verdicts
app/build.gradle.kts Gradle
// one artifact, every framework
dependencies {
    implementation(
        "com.github.ratifyeapp.ratifye-sdk:scanner:v1.0.0"
    )
}
BarcodeSDK.initialize(
    context = this,
    sdkConfig = BarcodeSDKConfig(
        apiKey = "YOUR_RATIFYE_API_KEY",
        domain = "dl.ratifye.ai"
    )
)
Scan verified
Genuine · territory matched
GTIN 08901234567890
Batch B123 · Serial SNF3WNL1VJ5V6
<80ms
Decode-to-result on modern Android hardware
5frameworks
Kotlin, Java, React Native, Flutter and Ionic
1line
Gradle dependency, distributed through JitPack
GS1native
Digital Link and application identifiers, parsed for you
What you get

Scanning is the easy part. The SDK does the rest.

Camera handling, GS1 parsing and verification normally mean months of glue code. This is the whole loop — shipped as a dependency.

Decoding

Every GS1 identifier, mapped.

Scan a GS1 Digital Link or DataMatrix payload and get a typed object back — GTIN, batch, serial, expiry, weight and more. No regex, no parser to maintain.

QR Code DataMatrix Digital Link URI
Verification

A verdict your team can trust.

Signature checks and diversion rules run against your Ratifye workspace, so the answer on screen is the authoritative one — not a guess made on the device.

✓ Genuine ! Diverted ? Unknown
Camera UX

Production scanning screens

Torch, tap-to-focus, haptics and a guided viewfinder — so you don't ship a camera preview that fights the user.

Diversion

Territory signals in the field

Each scan returns a geofence verdict, so out-of-territory stock surfaces the moment a rep scans it — not at quarter-end.

Parity

One artifact, five stacks

The same SDK behind Kotlin, Java, React Native, Flutter and Ionic. One upgrade path, no forked integrations to maintain.

Quickstart

From zero to a verified scan.

Pick your stack. Every path uses the same JitPack artifact, so the code below is all you need to get scanning.

1

Add the JitPack repository

Declare JitPack once in your project-level settings so Gradle can resolve the SDK.

settings.gradle.kts
dependencyResolutionManagement {
    repositories {
        google()
        mavenCentral()
        maven { url = uri("https://jitpack.io") }
    }
}
2

Add the SDK dependency

One artifact pulls in the scanner, GS1 parser and verification client.

app/build.gradle.kts
dependencies {
    implementation("com.github.ratifyeapp.ratifye-sdk:scanner:v1.0.0")
}
3

Initialize and launch the scanner

Call once at startup with your API key, then open the scanning activity when you need it.

MainActivity.kt
import ai.ratifye.scanner.BarcodeSDK
import ai.ratifye.scanner.BarcodeSDKConfig
import ai.ratifye.scanner.camera.ScanActivity

// Initialize once, with your API key
BarcodeSDK.initialize(
    context = this,
    sdkConfig = BarcodeSDKConfig(
        apiKey = "YOUR_RATIFYE_API_KEY",
        domain = "dl.ratifye.ai" // optional
    )
)

// Launch the live scanner
startActivity(Intent(this, ScanActivity::class.java))
Heads-up: the scanner needs camera permission at runtime, and your API key should be provisioned per app — never committed to source control. Rotate keys from your Ratifye workspace.
Inside the scanner

The screens your users actually see.

Guided capture, an unambiguous verdict and a detail sheet for GS1 values — all included, all consistent with your brand tokens.

9:41
Scan product⚡ Torch
Align in frame
Sub-80 ms decode
Works in low light
POWERED BY RATIFYE
01 · Live scanner Guided viewfinder with torch, tap-to-focus and haptics.
9:41
Scan resultClose
Ratifye'd genuine Certified by the manufacturer
✓ VERIFIED PACK Paracetamol 500 mg IP

GTIN 08901234567890 · Batch B123

Territory matched Scan location is inside the authorised zone
Signed · GS1 Digital Linkv1.0.0
02 · Verdict One answer, with the product and territory context behind it.
9:41
GS1 barcode details QR_CODE
https://dl.ratifye.ai/01/08901234567890/10/B123/21/SNF3WNL1VJ5V6
GTIN (01)08901234567890
BATCH (10)B123
SERIAL (21)SNF3WNL1VJ5V6
EXPIRY (17)29-02-2028
Open linkCopy value
03 · Detail sheet Every parsed identifier, plus the canonical Digital Link URL.
Compatibility

Bring the stack you already have.

Android first, cross-platform friendly. No private Maven repository, no proprietary tooling beyond the dependency itself.

Surface Integration Status
Kotlin Native SDK · ScanActivity v1.0.0
Java Same artifact, Java accessors v1.0.0
React Native Android native module v1.0.0
Flutter Host activity + MethodChannel v1.0.0
Ionic / Capacitor Android plugin v1.0.0
iOS Native Swift · CocoaPods Closed beta

Before you start

  • A Ratifye API key from your workspace
  • Android Studio project on Android 6.0+
  • Camera permission declared in the manifest
  • A resolver domain — defaults to dl.ratifye.ai
iOS SDK — closed beta

Our native Swift SDK and CocoaPods package for iOS 15+ is in closed beta with select enterprise partners.

Request beta access
FAQ

Integration questions, answered.

Do I need my own backend to use the SDK?+
No. The SDK calls the Ratifye resolver with your API key and returns both the decoded GS1 fields and the verification verdict. Your existing backend keeps doing what it already does — the SDK sits alongside it.
Will it read barcodes we've already printed?+
Yes. The scanner reads standard GS1 Digital Link URIs, QR codes and DataMatrix payloads. Cryptographic assurance applies to codes issued through Ratifye, so you can migrate pack by pack instead of reprinting everything at once.
What happens when a device is offline?+
Decoding runs on-device, so the camera loop stays responsive even on weak networks. Verification verdicts are server-authoritative and need a connection — if you're deploying into low-connectivity environments, talk to us about the right pattern.
How is the SDK licensed?+
Access is tied to your Ratifye workspace and API key. Speak to the team about the plan that matches your rollout size, and we'll provision keys per app for you.
Why distribute through JitPack?+
It removes private Maven setup from the equation: add the repository, add the dependency, and Gradle resolves a versioned artifact. Upgrades are a version bump, and the same artifact serves all five supported frameworks.
When can we ship on iOS?+
The Swift SDK is in closed beta with enterprise partners today. Request access and the team will scope your integration and timeline.
Start building

Your first verified scan is an afternoon away.

Get an API key, drop in the dependency and test the full loop against a sandbox pack. The team is on hand for integration reviews and rollout planning.