Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StreamChat creating background tasks and not ending them within 30 seconds #3474

Open
dfed opened this issue Oct 26, 2024 · 0 comments
Open

Comments

@dfed
Copy link
Contributor

dfed commented Oct 26, 2024

What did you do?

I'm not sure. I am seeing the following logs in my app (called "Tolan Dev"):

Background Task 49 ("Called by Tolan Dev.debug.dylib, from $s10StreamChat26IOSBackgroundTaskSchedulerCAA010BackgrounddE0A2aDP05beginD017expirationHandlerSbyycSg_tFTW"), 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.

It seems like StreamChat is calling beginBackgroundTask without ending the task gracefully within 30 seconds.

What did you expect to happen?

I expected StreamChat to terminate its background tasks within the required time period

What happened instead?

StreamChat apparently did not terminate its background tasks within the required time period

GetStream Environment

GetStream Chat version: 4.65.0
GetStream Chat frameworks: StreamChat, StreamChatUI
iOS version: 18
Swift version: 5 and 6 (depending on module)
Xcode version: 16
Device: any

Additional context

I have seen this log crop up a few times. Let me know if there's a way I can grab more logs for you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant