startSDKiOS method
Starts the Grouplink SDK specifically for iOS with the provided token. This method is used to initialize the SDK on iOS devices. It uses the iOS-specific method channel to invoke the native iOS SDK method.
Implementation
@override
Future<void> startSDKiOS(String token) async {
if (Platform.isIOS) {
try {
iOSSDKChannel.invokeMethod(
"startSDK",
{"token": token},
);
} on PlatformException catch (e) {
log("Error registerGrouplink: ${e.message}");
rethrow;
}
}
}