App crashes when phone is locked / app goes to background during audio playback

Hi everyone,

I’m experiencing a recurring crash in my Adalo app and I’m trying to understand whether this is a known issue or if others have seen something similar.

My app crashes very often when the phone screen is locked or when the app goes into the background. In some cases, the screen goes black briefly and then the app seems to close or returns to the lock screen.

This seems to happen especially when audio is involved, so I’m wondering if it could be related to background audio, the audio player, or how Adalo handles the app when the device is locked.

What happens:

  • the app is open and running normally

  • I lock the phone screen

  • after a while, when returning to the app, it has crashed or closed

  • sometimes there is a brief black screen before it exits

What I suspect:

It may be related to:

  • audio playing while the phone is locked

  • the app moving to the background

  • remote audio files

  • screen transitions or heavier screens combined with audio

Has anyone experienced this before?

Did you find out whether this is an Adalo issue, a native iOS/Android issue, or something related to the audio player component?

Any ideas, similar experiences, or fixes would be really appreciated.

Thanks a lot!

Hi @Steven1,

Could you list down the components included in that screen?

Thank you and have a great day!

Hi Dilon

thanks for the quick follow up!

I have:

Back section, audio player, video component running looping video on external url, favorite toggle, some text at the bottom.

You’re very welcome, Steven!

Video component below the audio player? Unbale to see it or is it coming with a visibility condition? Did this started happening recently which did not happened before or was it like this already?

1 Like

Yes the video is running in the background, no visibility, and under everything, layering wise.

I started noticing this since the app is published and is now in closed testing mode, and now used by my testing audience.

I have activated the “play in background” feature in the audio player.

Steven, could you attach a screenshot of the screen setup from the Adalo builder?

What happens if you check the app without the vertical video component? Would you be able to check it?

Ok, than I need to run a new build.
To be continued. Thanks in advance!

1 Like

Sure Steven, let me know how it goes! Thank you and have a great day!

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