diff --git a/README.md b/README.md
index 4df960707..2f19a7b77 100644
--- a/README.md
+++ b/README.md
@@ -68,6 +68,14 @@ simply hook `window.open` during initialization. For example:
window.open = cordova.InAppBrowser.open;
}
+### Preferences
+
+#### config.xml
+- InAppBrowserStatusBarStyle [iOS only]: (string, options 'lightcontent' or 'default'. Defaults to 'default') set text color style for iOS.
+```
+
+```
+
## cordova.InAppBrowser.open
Opens a URL in a new `InAppBrowser` instance, the current browser
diff --git a/src/ios/CDVWKInAppBrowser.m b/src/ios/CDVWKInAppBrowser.m
index d51061431..903ada2af 100644
--- a/src/ios/CDVWKInAppBrowser.m
+++ b/src/ios/CDVWKInAppBrowser.m
@@ -1055,7 +1055,12 @@ - (void)viewDidDisappear:(BOOL)animated
- (UIStatusBarStyle)preferredStatusBarStyle
{
- return UIStatusBarStyleDefault;
+ NSString* statusBarStylePreference = [self settingForKey:@"InAppBrowserStatusBarStyle"];
+ if (statusBarStylePreference && [statusBarStylePreference isEqualToString:@"lightcontent"]) {
+ return UIStatusBarStyleLightContent;
+ } else {
+ return UIStatusBarStyleDefault;
+ }
}
- (BOOL)prefersStatusBarHidden {