Skip to content

Commit 5994c15

Browse files
Fixed bug in "NSTaggedPointerString"
1 parent 5b099a5 commit 5994c15

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ios/Classes/CountlyFlutterPlugin.m

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,12 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
533533
if(!value){
534534
value = @"Default Value";
535535
}
536-
result([value stringValue]);
536+
NSString *theType = NSStringFromClass([value class]);
537+
if([theType isEqualToString:@"NSTaggedPointerString"]){
538+
result(value);
539+
}else{
540+
result([value stringValue]);
541+
}
537542
}else if ([@"askForFeedback" isEqualToString:call.method]) {
538543
NSString* widgetId = [command objectAtIndex:0];
539544
[Countly.sharedInstance presentFeedbackWidgetWithID:widgetId completionHandler:^(NSError* error){

0 commit comments

Comments
 (0)