getCommonTrackingData method
Implementation
Future<Map<String, dynamic>> getCommonTrackingData() async {
if (!_isInitialized) await _initialize();
return {
PerceptOS.name.asString: Platform.operatingSystem,
PerceptOS.version.asString: Platform.operatingSystemVersion,
PerceptSDK.clientTs.asString:
DateTime.now().millisecondsSinceEpoch.toString(),
PerceptSDK.clientUniqueEventId.asString: "EI-${getUuidV4()}",
PerceptSDK.type.asString: 'Flutter',
PerceptSDK.version.asString:
PerceptFlutterPlatform.instance.getPluginVersion(),
..._deviceInfo.data.map((key, value) => MapEntry('pi_$key', value)),
..._packageInfo.asMap,
};
}