Fyno Flutter InApp SDK

Fyno's Flutter InApp SDK offers a comprehensive set of notification features within your app. It's designed to efficiently deliver messages, ensuring optimal performance and user experience.


Before you start, make sure you have the following information ready

  • Workspace ID (WSID): You can find your workspace ID on your Fyno API Keys page.
  • Integration Token: Obtain the integration token from the Integrations page.
  • User ID: This should be a unique identifier for the currently logged-in user. This user ID is crucial for Fyno to send specific notifications to the right users.


Install the package by using one of the following commands.

dart pub add fyno_flutter_inapp
flutter pub add fyno_flutter_inapp

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

  fyno_flutter_inapp: <latest_version>

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

HMAC Signature Generation

The HMAC signature is essential for ensuring the security and integrity of your notifications. Here is an example of how to generate the HMAC signature in dart

import 'dart:convert';
import 'package:crypto/crypto.dart';

void main() {
  String signature = Hmac(sha256, utf8.encode(workspaceId + integrationToken))


Import the package in your Dart file:

import 'package:fyno_flutter_inapp/fyno_flutter_inapp.dart';

SDK Initialisation

To use the SDK in your Flutter application, initialise the SDK as follows

final FynoInApp fynoInApp = FynoInApp();

//Web Socket connection

There are 2 ways you can configure InApp UI.

  1. Fyno UI
  2. Customisable UI

Fyno UI


Customisable UI

Within the Customizable UI feature, you have the flexibility to build your own UI. Additionally, you can personalize the icons for actions like 'Read all' and 'Delete all' with your own custom designs. If you are utilizing the Customizable UI, it is necessary to invoke the following APIs.

  1. To mark all InApp notifications as Read
  1. To delete all InApp notifications
  1. To mark a single InApp notifications as Read
// pass one of the items from this list fynoInApp.fynoInAppState.list
  1. To delete a single InApp notification
// pass one of the items from this list fynoInApp.fynoInAppState.list
  1. To load more notifications (based on pagination)
fynoInApp.loadMoreNotifications(page, type) 
// type -> 'all' or 'unread', page should be greater than zero