getPlatformVersion method
Retrieves the platform version of the Grouplink SDK. This method is used to get the version of the SDK running on the device.
Implementation
@override
Future<void> getPlatformVersion() async {
if (Platform.isIOS) {
try {
await iOSSDKChannel.invokeMethod<String>('getiOSPlatformVersion');
} on PlatformException catch (e) {
log("Error getiOSPlatformVersion: ${e.message}");
rethrow;
}
}
if (Platform.isAndroid) {
try {
await methodChannel.invokeMethod("getAndroidPlatformVersion");
} on PlatformException catch (e) {
log("Error getAndroidPlatformVersion: ${e.message}");
rethrow;
}
}
}