Skip to content

Error calculating screen insets on Android 14 on pre-release version #362

@ramiroaisen

Description

@ramiroaisen

Describe the bug
This issue happens on the 7.1.0-1 pre-release
To reproduce you need to be in Android 14.
There's an incorrect calculation of the system screen insets. See the pictures attached.
¿Maybe the plugin changes the display mode of the app?

  1. Create an emulator with Android 14
  2. Create a banner ad on TOP_CENTER or BOTTOM_CENTER with margin: 0
  3. See how the banner is incorrectly placed. (seems that the offsets are duplicated)

Expected behavior
The expected behavior is what happens on Androd 15 and above, where the insets are correct.

Screenshots
Image
Image
https://github.com/user-attachments/assets/ccef0a06-d046-416f-911a-934d4a430de7

Smartphone (please complete the following information):

  • Device: Emulator Medium Phone Android Studio
  • OS: Android 14
  • Browser Chrome 137

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions