You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to Reproduce
I'm using react-native-mapbox-gl and trying to play audio in background. The map is shown when the audio starts playing.
Start playing audio
Lock the phone
Wait about a minute or so
App is killed with "Message from debugger: Terminated due to signal 9" message.
I have both location and audio UIBackgroundModes yet it still happens.
I suspect the app is killed because of the background task that MapboxMobileEvents creates. See the logs bellow.
Expected
The app not to be killed by OS
Logging 2022-03-24 11:54:31.101062+1300 myapp[8916:3189929] [BackgroundTask] Background Task 27 ("Called by MapboxMobileEvents, from -[MMEUIApplicationWrapper beginBackgroundTaskWithExpirationHandler:]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.
The text was updated successfully, but these errors were encountered:
Configuration
Steps to Reproduce
I'm using react-native-mapbox-gl and trying to play audio in background. The map is shown when the audio starts playing.
I have both location and audio UIBackgroundModes yet it still happens.

I suspect the app is killed because of the background task that MapboxMobileEvents creates. See the logs bellow.
Expected
Logging
2022-03-24 11:54:31.101062+1300 myapp[8916:3189929] [BackgroundTask] Background Task 27 ("Called by MapboxMobileEvents, from -[MMEUIApplicationWrapper beginBackgroundTaskWithExpirationHandler:]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.
The text was updated successfully, but these errors were encountered: