herow 0.0.1 herow: ^0.0.1 copied to clipboard
A flutter plugin for the Herow platform - https://my.herow.io
Herow #
A flutter plugin for the [Herow SDK], a location based SDK related to the Herow Platform
Getting Started #
Follow the Android Quickstart and the iOs Quickstart
Android #
Warning: On Android when extended the Application class, you must use the FlutterApplication and not the default android Application
public class FlutterApp extends FlutterApplication
GDPR #
The plugin provides a set of methods to manage as best the user optins to be compliant to GDPR
try {
//To test if your application has already asked to the user the optins
if (await Herow.optinsNeverAsked) {
//Update the optin
Herow.updateOptin(OPTIN_TYPE.USER_DATA, true);
//Notify the sdk that there is no more optin to update
Herow.allOptinsAreUpdated();
}
//To the the status of a given optin
optinUserDataStatus = await Herow.isOptinAuthorized(OPTIN_TYPE.USER_DATA);
} on PlatformException {
}
Warning: Untill the call to the Herow.allOptinsAreUpdated(); method, the SDK won't transmit the data collected the platform.
You can learn more about GPDR and optins reading the native tutorial
In App Actions #
In App Actions are events triggered when the user enter or exit from a place (a geofence zone or beacon configured on the Herow Platform)
These events allow you to realize action depending of the informations associated to the place.
For example, your application UI can be updated when your user is detected inside an airport or inside in a pub.
Your application can be notified about In App Action events, registering to the In App Action Stream
Herow herow = Herow();
herow.inAppActionEvents.listen((data) {
//Status allow to determine if it is a "CREATION" or "REMOVE"
print("data is data:" + data.status.toString());
print("data is data:" + data.id);
print("data is data:" + data.title);
print("data is data:" + data.description);
print("data is data:" + data.tag);
}, onDone: () {
print("done is done");
}, onError: (error) {
print("error is error");
});