Flutter iOS App crashing in Testflight but it is working in debug mode

When we tried background audio in debugging mode everything was working fine. We need this package to work the alarm in background mode i.e., when the app is idle in IOS. This functionality is required in our application to play an alarm when we receive a signal from server even though the app is idle, we need to hear the sound as alarm. It worked when we connect it in debugging mode and we have proceed to TestFlight update but app from the TestFlight crashed when the screen is off may be in the background mode.The issue occurs particularly in iOS


To Reproduce

Steps to reproduce the behavior:

1.Added alarm library in our flutter project

2.Coded like play alarm when we receive a signal from server

3.Enabled background fetch and audio airplay or picture in picture in capability.

4.Tested in debugging mode , it worked when screen is off or in background

5.Build the release version for TestFlight

6. Tested with release version, checked the working of alarm by keeping the iOS device screen off, it didn't play sound and when we reopen app it crashed

...

Expected behavior

We need to hear the sound in iOS when the app is idle for long time or in background


Attached screenshots for more details

iPhone 16

Posted on Jan 13, 2025 10:57 PM

Reply
1 reply

Jan 13, 2025 11:35 PM in response to varada2025

If you encounter any challenges with third-party applications, the best course of action is to directly contact the app developer for further assistance. Here's a brief guide on how to do it:


  1. Identify the app developer.
  2. Visit their website or app store listing.
  3. Look for their contact information or support channels.
  4. Clearly describe the issue you are facing.
  5. Provide any necessary information they may need.
  6. Follow their instructions and provide feedback.
  7. Be patient and follow up if needed.


By reaching out to the app developer, you increase your chances of receiving accurate and personalized support for the challenges you're experiencing. To contact an App developer --> How to contact an app developer - Apple Support




This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Flutter iOS App crashing in Testflight but it is working in debug mode

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.