Docs

The SDK, on one page.

Getting started, your consent screen, your users' controls, the limits and your key. The full guide comes with your offer.

Getting started

From your partner account to your users' first yes.

  1. Open a partner account and add your app.
  2. A person reviews it and writes to you with an offer.
  3. Once you accept, your key appears on your dashboard.
  4. Three calls: set it up, ask your user, start sharing.
LovarelSdk.init(context, "your app key")LovarelSdk.showConsent(activity) { agreed -> }LovarelSdk.start(context)
Kotlin
var sdk = new LovarelSdk("YOUR_APP_KEY");sdk.SetConsent(agreed);await sdk.StartAsync();
C#
LovarelSdk.init({ key: "your app key" });await LovarelSdk.showConsent();await LovarelSdk.start();
JavaScript
  • AndroidAndroid 7.0 and newer. Call init in Application.onCreate.
  • WindowsOne C# file and sharing_sdk.dll, for .NET Framework 4 and newer or .NET 6 and newer, 64-bit, no packages.
  • FirefoxCall init at the top level of your add-on's background service worker.

Controls

Your users stay in control, inside your app.

pause
Nothing is shared until resume. The yes and the sign-up stay.
resume
Shares again after a pause.
optOut
Your user's no, for good on that device. It stops within seconds.
status
What sharing does right now, for a screen of your own.
On Android, a notification shows whenever it shares, with a Pause button. It cannot be swiped away while sharing runs, and a tap opens your app.
In a browser, a badge shows ON on your extension's icon while it shares.

In a Windows program, Pause, Resume and OptOut sit inside your program, and Stop ends sharing before your program quits.

Limits

Light by default, on every platform.

  • On Android no daily limit by default; on Windows and in browsers at most 1 GB a day. You can set another limit, or none.
  • On Android on Wi-Fi and mobile data, unless your app keeps it to Wi-Fi.
  • On Windows it shares only while your program runs.
  • Banks, payment, government, emergency, health and critical-infrastructure sites are always refused.
  • On Android, after a restart or an update, it comes back by itself while your user's yes stands.
The Android defaults, as codeKotlin
val options = LovarelSdk.Options(    dailyLimitGb = 0.0,    allowMobileData = true,)LovarelSdk.init(context, "your app key", options)

What the notification says

It saysWhen

  • Sharing unused internetIt shares.
  • Waiting for Wi-FiThe phone is on mobile data or a metered Wi-Fi, and your app keeps it to Wi-Fi.
  • Waiting for your VPNA VPN is on.
  • RestingToday's limit is reached.
  • Sharing pausedYour user paused it. Nothing is shared until they resume.

Your key

One key per app, on your dashboard.

  • Your key appears once a person approved your app and you accepted the offer.
  • The dashboard shows it inside the three lines, ready to copy.
  • It goes into the first call, init. Without it, the SDK does not start.

Your app

Android, outside Google PlayFirefox

Approved

Your app key

••••••••••••••••

What it adds to your app

On Android, the permissions sharing needs, and nothing more.

Internet
Its one connection to our network, and the sign-up.
Network state
Wi-Fi or mobile data, or a VPN: it waits while a VPN is on, and on mobile data if your app keeps it to Wi-Fi.
Notifications
The notice that shows while it shares, with a Pause button.
Foreground service
It shares in the background while the notification shows.
Wake lock
Awake only on the charger, or while it carries a request.
Start at boot
It comes back after a restart, if your user left it on.

Android is at version 0.2.1, Windows and browsers at 0.2.0. The changelog

The full guide comes with your offer. Open a partner account

Earn with your app.

Open your partner account and add your app.

Become a partner