question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v4 JS] does not comply with statusbarPadding again

See original GitHub issue

Bug Report

Ionic Info Using @ionic/core version 4.0.0-beta.11 directly from npm / CDN (like unpkg or jsdelivr). Using Chromium 69.0.3497.81 and Firefox 62.0 (Ubuntu 16.04).

Describe the Bug Ionic retrieves some configuration options from the location query parameters that start with ionic:. In particular, ionic:statusbarPadding=true adds a top margin to account for the mobile status bar / notch (iPhone X). This was fixed in version 4.0.0-beta.3 (see https://github.com/ionic-team/ionic/issues/14742), but it is broken again in version 4.0.0-beta.11; this configuration option is no longer applied.

Steps to Reproduce Steps to reproduce the behavior:

  1. Go to: https://plnkr.co/edit/5l7QOnQt8LOVmRodi3UC?p=preview
  2. In Chrome and Firefox, the top toolbar displays behind the simulated status bar.

Related Code

Expected Behavior When the location includes the query parameter ionic:statusbarPadding=true, the App should add an extra top margin to account for the device status bar / notch.

Additional Context First reported for version 4.0.0-alpha.8 (https://github.com/ionic-team/ionic/issues/14742), was fixed in version 4.0.0-beta.3, but seems broken again since version 4.0.0-beta.4. Furthermore, even version 4.0.0-beta.3 looks broken in Chromium version 69.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ghybscommented, Dec 14, 2018

Hi,

Thank you a lot for the update!

I confirm that the ionic:_forceStatusbarPadding now works fine in both iOS and MD mode: https://plnkr.co/edit/sa2iCW3xHdTLWZ28N1ia?p=preview (beta.18)

As for the use case, indeed I do not use it in actual production. Nevertheless, I find it incredibly useful for demonstration purpose, and also for development.

Being able to showcase my app in a standard browser iframe side-by-side (somehow like ionic serve --lab used to do) really produces a nice effect on the audience.

Of course there are some limitations to what your app can do in such configuration. But since Ionic now also targets Progressive Web Apps, in many occasions an app does not have so many extra things that cannot run in a normal browser.

0reactions
ionitron-bot[bot]commented, Jan 13, 2019

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 Ionic, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[v4 JS] does not comply with statusbarPadding again #15624
When the location includes the query parameter ionic:statusbarPadding=true , the App should add an extra top margin to account for the device ...
Read more >
CoordinatorLayout status bar padding disappears from ...
Solution proposed by Android Team in the answer of my reported defect. This code should finally work. ViewPager mViewPager; ViewCompat.
Read more >
Android 11 DP3: Status bar bug cuts off time, battery level on ...
The Android 11 Developer Preview 3 appears to have an issue or bug with the status bar padding, which results in the time...
Read more >
IOS navbar overlaps statusbar - ionic-v3
I was using Ionic View to test my app on an iPhone 5s and noticed that the navbar was directly under the statusbar...
Read more >
A fix for wrong Status Bar padding. - XDA Forums
It is possible to get the padding back without using ADB again. The desired padding should be back again.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found