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]: Safe Area no longer works on Android #7908

Open
1 of 3 tasks
rtarling opened this issue Mar 6, 2025 · 4 comments
Open
1 of 3 tasks

[Bug]: Safe Area no longer works on Android #7908

rtarling opened this issue Mar 6, 2025 · 4 comments
Labels

Comments

@rtarling
Copy link

rtarling commented Mar 6, 2025

Capacitor Version

Capacitor Doctor

Latest Dependencies:

@capacitor/cli: 7.0.1
@capacitor/core: 7.0.1
@capacitor/android: 7.0.1
@capacitor/ios: 7.0.1

Installed Dependencies:

@capacitor/core: 7.0.1
@capacitor/cli: 7.0.1
@capacitor/android: 7.0.1
@capacitor/ios: 7.0.1

[success] Android looking great! 👌
[error] Xcode is not installed

Other API Details

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

Since upgrading, safe area on android is not being preserved, with the contents of my header appearing where the notch is.

Expected Behavior

Content should start appearing below the notch.

Project Reproduction

Additional Information

No response

@rtarling rtarling added the triage label Mar 6, 2025
@maxnowack
Copy link

maxnowack commented Mar 6, 2025

I've got the same issue.
I've tried to get a workaround with capacitor-plugin-safe-area, but it doesn't get any valid values and logs
WindowInsets is not available

@rtarling
Copy link
Author

rtarling commented Mar 6, 2025

Luckily that plugin seems to have worked for me - I put the code in App.vue, but to be honest I'd rather not use it. If it was working fine before, something must have got broken in the latest release, and I'd prefer it to be fixed there.

In case you don't have the same, this needs to be in the index.html
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">

@nikqig
Copy link

nikqig commented Mar 6, 2025

Refer to these threads: 7804 & 30090

@AntoscencoVladimir
Copy link

Same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants