Cross-Platform Client Engineering with Flutter In-App SDK
Cross-Platform Client Engineering with Flutter In-App SDK
Cross-Platform Client Engineering with Flutter In-App 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.
Important Note:
- Web support has been added to the Flutter In-App SDK starting from version 1.2.0. From this version onwards, the SDK can be easily integrated and used in Flutter Web applications in addition to mobile platforms.
- If you are developing for the web, please ensure that your project is using Flutter In-App SDK v1.2.0 or later to access and benefit from web compatibility. Web-based implementations are only supported in newer SDK versions; projects using earlier versions do not have this capability.
Install the package by using one of the following commands.
This will add a line like this to your package’s pubspec.yaml (and run an implicit dart/flutter pub get):
Alternatively, your editor might support dart/flutter pub get. Check the docs for your editor to learn more.
Before you dive into using the In-App Notification Center, there are some prerequisites you need to fulfill. You must ensure you have the necessary information and generate an HMAC signature.
Before you start, make sure you have the following information ready
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 various programming languages.
Import the package in your Dart file:
To use the SDK in your Flutter application, initialise the SDK as follows:
To reset the Inapp SDK, typically during logout, call the fynoInapp.reset() function.
There are 3 ways you can configure the InApp UI.
To customise the Fyno UI, you can pass the notification icon and colours you would like to use for the inapp notification inbox.
As of now, you can only change notification icon to any of the built in icons.
You can do the customisation as follows:
You have the flexibility to build your own UI. Additionally, you can personalise the icons for actions like ‘Read all’ and ‘Delete all’ with your own custom designs. If you are going to use this approach, it is necessary to invoke the following functions.