setCurrentSessionId method
Inform native side about the current session ID so that native crashes can be tagged with the same session.
Implementation
@override
Future<void> setCurrentSessionId(String sessionId) async {
try {
await methodChannel.invokeMethod<void>('setCurrentSessionId', {
'sessionId': sessionId,
});
} on MissingPluginException catch (error) {
debugPrint(
'[AppSentrik] setCurrentSessionId native method missing; ignored: $error',
);
} on PlatformException catch (error) {
debugPrint(
'[AppSentrik] setCurrentSessionId platform error; ignored: $error',
);
} catch (error) {
debugPrint('[AppSentrik] setCurrentSessionId failed; ignored: $error');
}
}