ma Hi, i did not use the notch detection but instead used this code for Android.
Application.service.display.setDisplayMode(
DisplayMode.IMMERSIVE,
LayoutMode.CUTOUT_SHORT_EDGES
);
I wish we could have this working for iOS but my workaround is perfect for me...My App logo is centered in the top middle... so the notch was overlapping my logo. I applied a quick fix with the device model detection instead for iOS.
Android has to much different devices to use the model detection.... haha