Web Setup

10darts web SDK is Chrome, Firefox and Opera compatible.

Platform Support

Browser Windows macOS Android iOS
Chrome Yes [2] Yes [1] [2] Yes No
Firefox Yes [1] [2] Yes [1] [2] Yes [1] No
Safari No No - No
Opera Yes [1] [2] Yes [1] [2] Yes [1] No
Edge No - No No
[1](1, 2, 3, 4, 5, 6, 7) Notifications do not support images.
[2](1, 2, 3, 4, 5, 6) Notifications are only shown when the browser is opened.

Note: Notifications are not shown when user is in “incognito” mode.

Platform Preview

macOS - Chrome

macOS - Chrome

macOS - Firefox

macOS - Firefox

macOS - Opera

macOS - Opera

Windows - Chrome

Windows - Chrome

Windows - Firefox

Windows - Firefox

Windows - Opera

Windows - Opera

Android - Chrome

Android - Chrome

Android - Firefox

Android - Firefox

Android - Opera

Android - Opera

Setup requirements

You need a 10darts account and a https web.

Setup your web application

Go to the Application section in your 10darts dashboard and create an application. You must introduce the name and web URL. Please make sure the URL where you want to install the SDK is correct, otherwise you will not be able to make calls to our server.

App

Once you have set up the application, 10darts has all data needed to allow you to set up your web SDK.

Web SDK Setup

Download and set up 10darts file so it’s accessible from your project’s root. It should be:

https://yoursite.com/10dartsServiceWorker.js

You can download the latest version of the worker from here.

Insert the code to start the SDK:

<script src="https://sdk.10darts.com/v0.3/10dartsSDK.js"></script>
<script>
  var Tendarts = window.Tendarts || {};
  Tendarts.init({
    token: 'YOUR_APPLICATION_TOKEN',
    publicKey: 'YOUR_APPLICATION_KEY',
    autosubscribe: true,
    geolocation: true,
    debug: false,
 });
</script>

You can download the latest version of the SDK from here.

Replace YOUR_APPLICATION_TOKEN and YOUR_APPLICATION_KEY with our application credentials.