Opt In / Opt Out
Users can decide at any time if they want to be part of the Mellowtel Network or not.
Introduction
In order to activate Mellowtel users must give their explicit consent. The library provides a way to opt in or opt out. The core idea is that since it’s their unused Internet bandwidth, they should decide if they want to share it or not.
This is why on the first installation/update with Mellowtel imported you must show a disclaimer/consent dialog that is not dismissible. Moreover, there must always be a clear way for users to change the settings at their convenience.
Disclaimer example
You can implement the opt-in/opt-out logic in two ways:
-
Using the recommended implementation with the pre-built page provided by Mellowtel. You can simply call the
generateAndOpenOptInLink()
method. -
Creating your own opt-in/opt-out elements. If users agree you can activate them on the Network by calling the
optIn()
method. If they don’t agree, you call theoptOut()
method.
1) Recommended implementation
When you import Mellowtel, we recommend opening a pre built page so users can see the disclaimer and decide if they want to opt in or out. This also ensures that you can maximize the number of users that opt in, as they can see the benefits of the Mellowtel Network.
Open your service worker
file (also known as background script) and add the following code:
2) Custom elements
If you want you can create your own custom opt-in/opt-out elements and handle user’s choice by using the optIn()
and optOut()
method as shown here.
Generate settings link
In order to let your users have complete control over their bandwidth, it is required that you leave an easily accessible way for them to change their settings at any moment.
You can generate a link by using the built-in method generateSettingsLink()
.
This method will return a link that will open the Mellowtel settings page where users can decide at any time if they want to opt-in or opt-out.
This link should be placed inside the popup, options page or any other place where users can easily access it.
Example of a text to use for the update
When you update your extension, you can inform your users about the Mellowtel library and ask them to opt in. Here is a text you could use for the update:
You can also link to the Mellowtel User Guide to provide more information to your users in non-technical terms.