setNotificationResId method
Sets the resource ID for the notification.
Implementation
@override
Future<void> setNotificationResId(int notificationResId) async {
if (Platform.isIOS) {
try {
await iOSSDKChannel.invokeMethod<String>(
"setNotificationResId",
notificationResId,
);
} on PlatformException catch (e) {
log("Error setNotificationResId: ${e.message}");
rethrow;
}
}
if (Platform.isAndroid) {
try {
await methodChannel.invokeMethod(
"setNotificationResId",
notificationResId,
);
} on PlatformException catch (e) {
log("Error setNotificationResId: ${e.message}");
rethrow;
}
}
}