inngage_plugin 2.0.11 copy "inngage_plugin: ^2.0.11" to clipboard
inngage_plugin: ^2.0.11 copied to clipboard

outdated

Inngage Plugin for Flutter applications for marketing campaign optimization using Push Notification and In App Messages channels.

pub package

inngage_plugin #

This SDK inf lutter aims to enable integration with the Inngage platform

Add the plugin to your project #

  • Open the pubspec.yaml
  • add to the dependencies section

Access here to see the official documentation on the inngage website

inngage_plugin:2.0.11

How to use #

 final json = {
      "nome": "User 01",
      "dt_nascimento": "01/09/1970",
      "genero": "M",
      "cartao": "N",
      "ultimo_abastecimento": "10/09/2018",
      "total_abastecido": "290,00"
    };

    final inngageWebViewProperties = InngageWebViewProperties(
      appBarColor: Colors.pink,
      appBarText: Text(
        'AppTitle',
      ),
      backgroundColor: Colors.white,
      loaderColor: Colors.pink,
      debuggingEnabled: true,
      withJavascript: true,
      withLocalStorage: true,
      withZoom: true,
    );
    await InngageSDK.subscribe(
      appToken: 'appToken',
      friendlyIdentifier: '[email protected]',
      customFields: json,
      phoneNumber: 'phoneNumber',
      email: '[email protected]',
      blockDeepLink:true,
      firebaseListenCallback: (data) => print(data['additional_data']),
      navigatorKey: navigatorKey,
      inngageWebViewProperties: inngageWebViewProperties,
      requestAdvertiserId: false,
    );
     Future.delayed(const Duration(seconds: 5)).then((value){
      InngageNotificationMessage.subscribe();
    });
    InngageEvent.setDebugMode(true);
    InngageEvent.setUserPhone("phoneNumber");
    await InngageEvent.sendEvent(
      eventName: 'MyOtherEventWithoutEventValues',
      appToken: 'appToken',
      identifier: '[email protected]',
      eventValues: {
        'location': '12312312312',
      },
    );
    await InngageEvent.sendEvent(
      eventName: 'send_test',
      appToken: 'appToken',
      identifier: '[email protected]',
    );

  var localNotification = InngageNotificationMessage.flutterLocalNotificationsPlugin;

Call subscribe() on a InngageSDK to request it.

4
likes
0
points
247
downloads

Publisher

verified publisherinngage.com.br

Weekly Downloads

Inngage Plugin for Flutter applications for marketing campaign optimization using Push Notification and In App Messages channels.

Homepage

License

unknown (license)

Dependencies

advertising_id, device_info, devicelocale, firebase_core, firebase_messaging, flutter, flutter_image_slideshow, flutter_local_notifications, flutter_secure_storage, http, logger, meta, package_info, url_launcher, webview_flutter

More

Packages that depend on inngage_plugin

Packages that implement inngage_plugin