Getting started
From your partner account to your users' first yes.
- Open a partner account and add your app.
- A person reviews it and writes to you with an offer.
- Once you accept, your key appears on your dashboard.
- Three calls: set it up, ask your user, start sharing.
- 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.
Consent
Your screen, your words, your place in the app.
- Ask on a consent screen of your own design, wherever it fits your app, and pass the answer to setConsent.
- Before your app goes live, we review that screen with you.
- Prefer a ready-made one? showConsent shows ours, which closes only with a choice. In Firefox it opens in a tab, for example right after install.
- Sharing starts only after a yes, and a no stops it at once.
- The SDK keeps a record of each yes and its time.
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.
Your app
Sharing unused internet
shared today
Pause
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 codeKotlinval 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
••••••••••••••••Copy
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.