You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "cyril23 (via GitHub)" <gi...@apache.org> on 2026/10/06 16:59:07 UTC

Re: [I] Not working with cordova-ios 8.1.1 and iOS 27 [cordova-plugin-statusbar]

cyril23 commented on issue #294:
URL: https://github.com/apache/cordova-plugin-statusbar/issues/294#issuecomment-6021255264

   For anyone who is still on **cordova-ios 7.x** and needs a stopgap before moving to cordova-ios 8 with its built-in status bar: we hit the same issue on iOS 27.0.1 (iPhone 18 Pro). The WebView started at y=0 under the status bar, the `StatusBarBackgroundColor` background was missing, and taps were offset by roughly the status bar height.
   
   We fixed it by cherry-picking EasyMerch/cordova-plugin-statusbar@978f7656ff0bd26c11321d58cb3d099fa3fb1a31 ("fix deprecations"). It replaces `[UIApplication sharedApplication].statusBarFrame` / `isStatusBarHidden` with `view.window.windowScene.statusBarManager` and resizes on `CDVViewWillTransitionToSizeNotification` / `CDVViewDidLayoutSubviewsNotification`. We applied it on top of the 4.0.0 release.
   
   We added one change on top of that: `show()` / `hide()` also check the requested hidden state (`sb_hideStatusBar`), because `statusBarManager.isStatusBarHidden` may lag behind and our app calls `hide(); show();` back to back at startup.
   
   - Our commit: LogicsSoftwareGmbH/cordova-plugin-statusbar@0977f001d504a07ebf9bca319b26fcd3a33d1cd0 (tag `4.0.1-logics`)
   - Note: our fork also removes the Android platform, so it is iOS-only. On Android, cordova-android 15 handles the status bar itself.
   - Tested with cordova-ios 7.1.0, built with Xcode 26.6 (iOS 26.5 SDK), on iOS 27.0.1.
   
   We will remove the plugin when we move to cordova-ios 8, as recommended above.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org