initialize static method
initialize
Auto-configures the Gleap SDK from the remote config.
Params
token
The SDK key, which can be found on dashboard.bugbattle.io
Available Platforms
Android, iOS, Web
Implementation
static Future<void> initialize({
required String token,
}) async {
if (!kIsWeb && !io.Platform.isAndroid && !io.Platform.isIOS) {
debugPrint('initialize is not available for current operating system');
return;
}
_initCallbackHandler();
await _channel.invokeMethod(
'initialize',
{'token': token},
);
}