initAppgainSDK method
Initializes the Appgain sdk
appId
and appKey
are required and can be found in the dashboard
(https://docs.appgain.io/basicIntegration/configureYourDashboard/#sdk-integration)
Implementation
Future initAppgainSDK(
{required String? appId, required String? appKey}) async {
var data = {'appId': appId, 'apiKey': appKey, 'configure': true};
try {
await _channel.invokeMethod(_initializeAppgainSDK, data).then((result) {
logger.d('initAppgainSDK $result');
});
return 'Success';
} on PlatformException catch (e) {
logger.d(e.toString());
return e;
}
}