start method
Start GeoTriggering features of the Bluedot Point SDK
You can start Geo-triggering feature only while your App is in the Foreground. An error will be returned if your App does not have either Always or When In Use location permission. If the GeoTriggering feature is started successful, error will be returned as nil. However, if the Start GeoTriggering feature fails, an error will be provided.
Implementation
Future<void> start() {
if (Platform.isAndroid) {
return BluedotPointSdkPlatform.instance.androidStartGeoTriggering(channelId, channelName, androidNotificationTitle, androidNotificationContent, androidNotificationId);
} else if (Platform.isIOS) {
return BluedotPointSdkPlatform.instance.iOSStartGeoTriggering(iosAppRestartNotificationTitle, iosAppRestartNotificationButtonText);
} else {
return BluedotPointSdkPlatform.instance.unimplementedError();
}
}