retein_client_sdk 0.1.1 copy "retein_client_sdk: ^0.1.1" to clipboard
retein_client_sdk: ^0.1.1 copied to clipboard

Flutter SDK for Retein event-based email marketing automation.

Retein Client SDK #

Retein Client SDK is a Flutter package for integrating event-based email marketing automation into your Flutter applications.

Getting Started #

To start using the Retein Client SDK, follow these steps:

Installation #

Add the following to your pubspec.yaml:

dependencies:
  retein_client_sdk: ^0.1.0

Then, run flutter pub get to install the package.

Usage #

Here's a basic example of how to use the Retein Client SDK:

import 'package:retein_client_sdk/retein_client_sdk.dart';

void main() async {
  // Initialize the SDK
  final sdk = await ReteinClientSDK.create(publicKey: 'your_public_key');

  // Identify a user
  await sdk.identify("user_id");

  // Update user information
  await sdk.updateUser({
    'name': "test",
    'email': "test@sinaptik.ai",
    'address': "....."
  });

  // Track an event
  await sdk.track(eventName: 'button_click', properties: {'button_name': 'subscribe'});

  // Reset SDK on logout
  await sdk.reset();

  print('SDK operations completed.');
}

Features #

  • User Identification: Identify users to personalize their experience.
  • Event Tracking: Track user interactions and events within your app.
  • Auto Page View Tracking: Automatically track page views if enabled.

License #

This project is licensed under the MIT License - see the LICENSE file for details.

Contribution #

Feel free to contribute to this project by submitting issues or pull requests.

Support #

For any questions or support, please contact support@retein.io.

0
likes
155
points
16
downloads

Publisher

verified publishersinaptik.ai

Weekly Downloads

Flutter SDK for Retein event-based email marketing automation.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http, shared_preferences

More

Packages that depend on retein_client_sdk