Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: SplashScreen.splashImmersive does not hide status bar #2934

Closed
1 of 4 tasks
muuvmuuv opened this issue May 15, 2020 · 8 comments Β· Fixed by #2945
Closed
1 of 4 tasks

bug: SplashScreen.splashImmersive does not hide status bar #2934

muuvmuuv opened this issue May 15, 2020 · 8 comments Β· Fixed by #2945

Comments

@muuvmuuv
Copy link

Bug Report

Capacitor Version

npx cap doctor output:

❯ npx cap doctor
πŸ’Š   Capacitor Doctor  πŸ’Š

Latest Dependencies:

  @capacitor/cli: 2.1.0

  @capacitor/core: 2.1.0

  @capacitor/android: 2.1.0

  @capacitor/electron: 2.1.0

  @capacitor/ios: 2.1.0

Installed Dependencies:

  @capacitor/android not installed

  @capacitor/electron not installed


  @capacitor/cli 2.1.0

  @capacitor/ios 2.1.0

  @capacitor/core 2.1.0

  Found 0 Capacitor plugins for ios:
[success] iOS looking great! πŸ‘Œ

Affected Platform(s)

  • Android
  • iOS
  • Electron
  • Web

Current Behavior

Enabling splashImmersive does not hide the status bar on app start up. I had to manually set UIStatusBarHidden to true but this causes another error where the status bar appears a millisecond between start up and showing the splash screen with the spinner.

Bildschirmvideo aufnehmen 2020-05-15 um 18 07 32

Expected Behavior

Enabling this option should hide the status bar until ready state is called.

Sample Code or Sample Application Repo

Reproduction Steps

With any ionic starter:

  1. Set splashImmersive to true
  2. Run with ionic capacitor run ios --livereload
  3. Run on device
  4. Status bar is visible
  5. Set UIStatusBarHidden in Plist to true
  6. Re-run app
  7. Flickering seen but Status bar hidden

Other Technical Details

npm --version output: 6.13.4

node --version output: 12.16.1

pod --version output (iOS issues only): 1.8.3

Other Information

@jcesarmobile
Copy link
Member

that is Android only preference, should be documented

@muuvmuuv
Copy link
Author

Oh, okay. But why? iOS provides such functionality as I can see and mentioned above. Maybe I turn this into a feature request then?

@jcesarmobile
Copy link
Member

Because immersive mode is an android thing, not an iOS thing

@muuvmuuv
Copy link
Author

Okay, I understand that. Then how do I enable this functionality for iOS? Manually through UIStatusBarHidden works not so great (as you can see in the GIF) and I can not figure out where this flickering come from.

@jcesarmobile
Copy link
Member

iOS app are already full screen, the status bar is "transparent",
so what you say sounds like a different issue, can you provide a sample app?

@muuvmuuv
Copy link
Author

You can simply run any starter and try to remove the status bar with UIStatusBarHidden.

@ramseyfeng
Copy link

ramseyfeng commented Apr 12, 2021

Does this bug really got fixed? I'm still facing the issue with the latest capacitor on android device.
I tried it with the latest capacitor 3.0.0-rc.0 with the below configuration, and I still got the issue.
Neither the status bar nor the navbar is hidden.

  "plugins": {
    "SplashScreen": {
      "launchShowDuration": 3000,
      "launchAutoHide": true,
      "backgroundColor": "#ffffffff",
      "androidSplashResourceName": "splash",
      "androidScaleType": "CENTER_CROP",
      "androidSpinnerStyle": "large",
      "iosSpinnerStyle": "small",
      "spinnerColor": "#999999",
      "showSpinner": true,
      "splashFullScreen": true,
      "splashImmersive": true
    }
  },

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 11, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants