Skip to content

Commit

Permalink
Fixed bug in "NSTaggedPointerString"
Browse files Browse the repository at this point in the history
  • Loading branch information
trinisofttechnologies committed Dec 19, 2019
1 parent 5b099a5 commit 5994c15
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ios/Classes/CountlyFlutterPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 5994c15

Please sign in to comment.