Prevent app from rotating!

Hey guys!

Just wondering if there is any fix for bubble native screens rotating to landscape for apps that don’t require the user to view the app in landscape? Like is there anyway to block this without making the user turn off screen rotation?

1 Like

ortunately, Bubble doesn’t have a built-in setting to lock screen orientation to portrait-only within the app itself. The screen rotation is controlled by the device’s system settings, not by Bubble’s native app wrapper.

The typical workaround for this is to handle it at the app wrapper level if you’re converting your Bubble app into a native iOS or Android app using a service like BDK Native or similar wrappers. These services usually have orientation lock settings you can configure before building the app, where you can specify portrait-only mode.

If you’re just using Bubble’s preview app or running it as a progressive web app, you’re pretty much stuck with whatever the user’s device rotation settings are. There’s no way to programmatically force orientation lock from within Bubble itself since it’s running in a browser environment that doesn’t have access to those native device controls.

Your best bet is either using a proper native app wrapper that gives you orientation control, or designing your responsive layout to handle landscape mode gracefully even though it’s not your primary use case. Not the answer you were hoping for, but that’s the current limitation with Bubble’s native capabilities.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.