diff --git a/ios/Classes/CountlyFlutterPlugin.m b/ios/Classes/CountlyFlutterPlugin.m index 756eed53..9560d076 100644 --- a/ios/Classes/CountlyFlutterPlugin.m +++ b/ios/Classes/CountlyFlutterPlugin.m @@ -533,7 +533,12 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result { if(!value){ value = @"Default Value"; } - result([value stringValue]); + NSString *theType = NSStringFromClass([value class]); + if([theType isEqualToString:@"NSTaggedPointerString"]){ + result(value); + }else{ + result([value stringValue]); + } }else if ([@"askForFeedback" isEqualToString:call.method]) { NSString* widgetId = [command objectAtIndex:0]; [Countly.sharedInstance presentFeedbackWidgetWithID:widgetId completionHandler:^(NSError* error){