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:3.2.0
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: 'user@gmail.com',
customFields: json,
phoneNumber: 'phoneNumber',
email: 'user@gmail.com',
blockDeepLink:true,
firebaseListenCallback: (data) => print(data['additional_data']),
navigatorKey: navigatorKey,
inngageWebViewProperties: inngageWebViewProperties,
requestAdvertiserId: false,
requestGeoLocator: 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: 'user@gmail.com',
eventValues: {
'location': '12312312312',
},
);
await InngageEvent.sendEvent(
eventName: 'send_test',
appToken: 'appToken',
identifier: 'user@gmail.com',
);
var localNotification = InngageNotificationMessage.flutterLocalNotificationsPlugin;
Call subscribe()
on a InngageSDK
to request it.
Libraries
- data/api/inngage_api
- data/exceptions/exceptions
- data/model/event_request
- data/model/notification_request
- data/model/subscription_request
- dialogs/app_dialog
- dialogs/notification
- events/inngage_event
- firebase/firbase_message
- geolocator/geolocal
- inapp/dialogs/dialog_poster
- inapp/inapp_actions
- inapp/inapp_dialog
- inapp/inapp_widget
- inapp/inngage_inapp
- inapp/widgets/custom_image_slideshow
- inapp/widgets/custom_text
- inngage_plugin
- inngage_sdk
- models/innapp_model
- models/inngage_properties
- models/inngage_web_view_properties_model
- models/rich_content_model
- services/analytics_service
- services/inngage_service
- util/constants
- util/flutter_native_dialog
- util/hexcolor
- util/utils