Black screen on a wrapped app in Android

Hi, I had my app wrapped with BDK from @gaurav. It’s been running fine for the last two years.
Today one of my users on Android is getting a black screen. To be precise, he sees for a second the login/signup page and, immediately after, a black screen.

His internet connection is good. I had him deleting the cache and all the data. I also had him uninstalling and reinstalling the app but the problem persists.

All other users are fine.

Can anybody help? Thanks in advance,
gl

Check if any condition is breaking for the user. BDK wraps your app in a web view for mobile. Unless it breaks for everyone it shouldn’t be causing anything here

Thank you. It appears that there is no particular condition for that user. I tried to login with his credentials from another device and it works. In any case, when he opens the app he can just be logged-in or logged-out and the app should display an according content. In no case a “no content” scenario is supposed to happen.
I’ll try to add a feature “logout from all other sessions” and see if something changes.

Try logging in on a laptop and inspect it to show a mobile screen. It could help in debugging better

1 Like

I visited the customer (lucky me, he is close). It ended up to be a problem dealing with orientation. If, at the login page, the tablet was in landscape it was producing a black screen otherwise it was fine.
That page has a “set orientation” action:


as it’s not really needed, I will delete that step. The weird thing is that it’s the first time that this problem occurs among all my users.

The solution is: avoid using orientation actions.

The Android wrapping in any case has some flaws:

  • a problem that occurs several times, also to other customers, is that when in other pages (with no “Set orientation”), the device is moved from portrait to landscape and viceversa, the screen goes black and the user has to close and reopen the app. This is due to the fact that Android reloads the page and this action interferes with the wrapping.
  • sometimes a black bar appears on the bottom.
1 Like

Why does it go black in orientation though. are you limiting the screen to not show content after a certain width or is it just how the wrapper is built?

I’m not limiting anything. I think it’s just a problem of the wrapper.

1 Like

Well hopefully everything sorts out once bubble launches it’s mobile builder. I’m really looking forward to it. Stopped building mobile apps because it wasn’t as great as the web builder

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.