getNotificationName method
Retrieves the name of the notification. This method is used to get the notification name that has been set for the Grouplink SDK.
Implementation
@override
Future<void> getNotificationName() async {
if (Platform.isIOS) {
try {
await iOSSDKChannel.invokeMethod<String>('getNotificationName');
} on PlatformException catch (e) {
log("Error getNotificationName: ${e.message}");
rethrow;
}
}
if (Platform.isAndroid) {
try {
await methodChannel.invokeMethod("getNotificationName");
} on PlatformException catch (e) {
log("Error getNotificationName: ${e.message}");
rethrow;
}
}
}