The SDK
2 lines of code open a new revenue line.
One SDK for Android and iOS. It wakes up only when your app already holds Bluetooth® and location grants, scans for sensor beacons, stamps them with a fresh GPS fix, and forwards them. Your org earns 1 sat for every unique device your installs hear first each day, settled daily in Bitcoin over Lightning.
EEGateway.configure(context, EEConfig.GatewayToken(tokenFromYourBackend)) EEGateway.start()
Integrate your Android app with these 2 lines. iOS needs the same 2 in Swift.
10 minutes from org key to your first forwarded packet.
Apache-2.0 · Zero deps · minSdk 26 · iOS 15+ · GitHub: Android · iOS
The whole integration.
From your existing service on Android:
EEGateway.configure(context, EEConfig.GatewayToken(tokenFromYourBackend)) EEGateway.start()
And the Swift twin on iOS:
EEGateway.configure(.gatewayToken(token: tokenFromYourBackend)) EEGateway.start()
No signup screens, no new permission prompts, no EE credential in your binary. The one thing your users do see: an opt-in disclosure you show before the first scan, because relaying beacon data is a new use of the permissions they granted you. We ship the copy; decline it and your app works exactly as before.
Full quickstarts live in the READMEs: ee-sdk-android · ee-sdk-ios
Building with a coding agent? Paste this.
If Cursor, Claude Code, or another agent writes your integrations, hand it this prompt. It carries everything the agent needs: the repos, the provisioning flow, and the one user-facing requirement.
Integrate the Encrypted Energy SDK into my app. Repos: https://github.com/Encrypted-Energy/ee-sdk-android (Kotlin, AAR) or https://github.com/Encrypted-Energy/ee-sdk-ios (Swift Package). Read the README and docs/INTEGRATION.md in the repo first. 1. Backend: add an endpoint that mints one gateway per install via POST https://encryptedenergy.com/api/v1/org/gateways using my org key (server side only, never in the app binary) and hands the returned ee_live_ token to the app over my authenticated channel. 2. App: show the user opt-in disclosure from docs/COMPLIANCE.md before the first scan. If the user declines, change nothing. 3. App: inside my existing foreground service or background mode, call EEGateway.configure with the token, then EEGateway.start(). Request no new permissions; the SDK parks until grants exist. 4. Stores: update my Play data safety form and App Store privacy labels with the exact wording from docs/COMPLIANCE.md.
Mint the org key first; it takes a minute and the agent needs it on your backend, never in the app.
What it will never do to your app.
You're letting our code live inside the app you built, so these rules are frozen API, not aspirations.
Your users never see a prompt from us.
start() without the grants parks in its awaiting-permissions state and advances on its own the moment your permission flow completes. Revoke a grant mid-run and it parks again. Your users never see a dialog they didn't expect.
It can't crash your app.
No exception, no crash vector, no force-unwraps. If something goes wrong on our side, your app never finds out the hard way.
It runs only where your app already runs.
The SDK starts no services and declares no background modes of its own. It rides the foreground service or background mode your app already runs for its real features.
You can pause every install with one switch.
Flip one flag on our side and every install pauses its pipeline on the next heartbeat, no app update required. Flip it back and they resume. You can leave any time.
Zero dependencies.
The Android AAR pulls in nothing beyond the Kotlin stdlib you already ship. The Swift package imports Foundation and the system frameworks, nothing else. Your dependency audit stays boring.
Apache-2.0.
Use it in a proprietary app with no strings attached. Read every line before you ship it; we'd do the same.
Provisioning at fleet scale.
Your backend holds one org key and mints a gateway identity per install through the org API:
POST /api/v1/org/gateways
Authorization: Bearer ee_org_…
{ "name": "install-8f3a" }
→ { "gateway": { … }, "token": { "key": "ee_live_…" } }
The org key stays on your servers; each device gets its own revocable ee_live_ token over your authenticated channel. Tokens are verified against the server before they're persisted and encrypted at rest, so a revoked or mistyped token can't poison a phone. There's also a self-mint demo mode for kicking the tires before you wire up the backend.
What your users will ask, answered.
The packets your app relays are encrypted by the device owner's key before your app ever hears them. Neither you nor we can read the payload, and the tracked devices rotate their broadcast identifiers at least every 24 hours. The location stamps your installs attach pay bounties and draw the coverage map; they're never sold and never used for ads. The legal page spells out exactly what we store and share.
Battery cost stays small by construction. The scan filters on a single service ID, which lets the OS coalesce it cheaply, and uploads go out in batches that skip empty queues. The only always-on traffic is a small heartbeat every 3 minutes, which is also how the kill switch reaches every install.
For the store reviews, the SDK ships with the compliance homework done: drop-in user-disclosure copy, plus the exact wording for Google Play's data safety form and Apple's privacy labels, all in the repo's compliance guide. Disclosure and consent are what separated the SDKs that lasted from the ones that got their hosts banned, so we treat them as part of the product.
Get it.
Both SDKs are open source on GitHub, tagged 0.2.1 under Apache-2.0. On Android, clone the repo, build the AAR with one gradle command, and drop it in libs/. On iOS, add the package in Xcode: File → Add Package Dependencies → paste the repo URL, rule Up to Next Minor. Each README walks every step. The iOS build has already run end to end against production; the Android build ships the same wire contracts behind a 191-test harness.
The economics are flat and public: 1 sat per unique device heard first per UTC day, pooled across your org, settled daily over Lightning once the pool clears 1,000 sats. Tell us what you've built and roughly how many installs carry it, and we'll walk you through the math for your fleet.