dertieran commented on a change in pull request #134:
URL: 
https://github.com/apache/cordova-plugin-statusbar/pull/134#discussion_r514397808



##########
File path: src/ios/CDVStatusBar.m
##########
@@ -199,6 +199,14 @@ - (void) _ready:(CDVInvokedUrlCommand*)command
     }
 }
 
+- (void) height:(CDVInvokedUrlCommand*)command
+{
+    double statusBarHeight = [UIApplication 
sharedApplication].statusBarFrame.size.height;
+    CDVPluginResult* result = [CDVPluginResult 
resultWithStatus:CDVCommandStatus_OK messageAsDouble:statusBarHeight];
+    [result setKeepCallbackAsBool:YES];

Review comment:
       Just realized my 
[comment](https://github.com/apache/cordova-plugin-statusbar/pull/134#discussion_r514301773)
 might be misleading,`setKeepCallbackAsBool` should **not** be set to `YES`,
   because this could causes a memory leak because the callback handler is 
never cleaned up.
   ```suggestion
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to