start method
Sends relevant data to native side. On native side these data are used to start Talsec object.
Implementation
Future<void> start() async {
/// For Android
if (Platform.isAndroid) {
TalsecChannels.configMethodChannel.invokeListMethod('getConfig', {
'expectedPackageName': config.expectedPackageName,
'expectedSigningCertificateHash': config.expectedPackageName,
'watcherMail': config.watcherMail,
'supportedAlternativeStores': config.supportedAlternativeStores
});
return;
}
/// For iOS
TalsecChannels.configMethodChannel.invokeListMethod('getConfig', {
'appBundleId': config.appBundleId,
'appTeamId': config.appTeamId,
'watcherMail': config.watcherMail,
});
}