Notix InApp SDK

NOTIX is an audience re-engagement service based on push notifications that work for both desktop and mobile devices.

Contents

Setup

1. Installation

Run this command:

flutter pub add notix_inapp_flutter

This will add a line like this to your package’s pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  notix_inapp_flutter: ^0.0.1

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

2. Import

import 'package:notix_inapp_flutter/notix.dart';

Push notifications setup

Call Notix.Notification.init using your notixAppId and notixToken. These credentials can be found on the page of your In-App Android source

Notix.Notification.init(/* your notixAppId */, /* your notixToken */);

Run the app and send your first notification!

Interstitial setup

Create a loader that will be accessible throughout your app and call startLoading():

var loader = await Notix.Interstitial.createLoader(/* your zone id */);
loader.startLoading();

At the show site get InterstitialData instance from the loader and pass it to Notix.Interstitial.show:

InterstitialData interstitialData;
try {
    interstitialData = await loader.next();
} catch (e) {
    /* handle exception */
}
Notix.Interstitial.show(interstitialData);

You do not need to manage the loader yourself. It does its best effort to load and cache exactly 3 entries.

Further steps

For additional settings please visit this page