Coder Social home page Coder Social logo

strawhatalexander / iterable-flutter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from la-haus/iterable-flutter

0.0 0.0 1.0 186 KB

Flutter library for Iterable.com services

License: MIT License

Shell 3.34% Ruby 6.34% Objective-C 1.98% Kotlin 23.17% Dart 48.86% Swift 16.30%

iterable-flutter's Introduction

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

⚠️ ⚠️ We are no longer maintaining this library. Feel free to fork it and work on your own branch. ⚠️ ⚠️

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Iterable Plugin

Pub Version Build Lint Tests

This library is in alpha so the implementation details could change a lot from version to version, check releases and CHANGELOG.md to know how it changes over time.

Flutter plugin to support Android and iOS push notifications from https://iterable.com/.

Usage

To use this plugin, add iterable_flutter as a dependency in your pubspec.yaml file.

Supported methods

Method Android iOS Web MacOS Windows Linux
initialize X X
setEmail X X
setUserId X X
registerForPush X X
updateUser X X
signOut X X
track X X
setNotificationOpenedHandler X X

Installation

  1. Add iterable_flutter as a plugin in pubspec.yaml with the version you need like this:
iterable_flutter: 0.5.4
  1. Use IterableFlutter.initialize to set your iterable keys.

First, create a mobile API Key from Iterable. Then, also from Iterable, create a mobile app and assign a push integration to it.

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();

    IterableFlutter.initialize(
      apiKey: <api-key>,
      pushIntegrationName: <name>,
    );
  }
}
  1. Identify the user

The identification can be done either using IterableFlutter.setEmail or IterableFlutter.setUserId methods. Don't set an email and user ID in the same session, doing so causes the SDK to treat them as different users.

  1. Call IterableFlutter.registerForPush to register the device for current user and listen for opened pushes with IterableFlutter.setNotificationOpenedHandler

  2. Track your events and optional data fields, call IterableFlutter.track method.

Example

Check the example/ folder to see an example project using this library.

iterable-flutter's People

Contributors

santi92 avatar cdmunoz avatar danielgomezrico avatar gabriel-azevedo avatar bradfora avatar chillbrodev avatar masterwok avatar mabidakun avatar

Forkers

poached

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.