diff --git a/ios/Classes/SwiftAirshipPlugin.swift b/ios/Classes/SwiftAirshipPlugin.swift index 6b1936a5..1980f4c1 100644 --- a/ios/Classes/SwiftAirshipPlugin.swift +++ b/ios/Classes/SwiftAirshipPlugin.swift @@ -452,11 +452,7 @@ public class SwiftAirshipPlugin: NSObject, FlutterPlugin { return try AirshipJSON.wrap(flag).unWrap() case "featureFlagManager#trackInteraction": - guard let argument = try? call.requireAnyArg(), - let arg = argument as? String else { - throw AirshipErrors.error("Call requires a String argument") - } - + let arg = try call.requireStringArg() guard let jsonData = arg.data(using: .utf8), let featureFlagProxy = try? JSONDecoder().decode(FeatureFlagProxy.self, from: jsonData) else { throw AirshipErrors.error("Call requires a json string that's decodable to FeatureFlagProxy")