-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Reverts "Timing: Fixes timer when app get into background (#24649)" #27065
Conversation
@radko93 Hey, seems iOS13 killed background apps much more aggressively, because we just use |
@zhongwuzw I think iOS 13.1 put some stricter limits on how this works. https://forums.developer.apple.com/thread/85066:
Maybe we don't stop the background task in time, I'm not sure at this time, but we should investigate later on. You can try to experiment with iOS 13.1. |
Woah, starting background task and never stop it? Of course iOS will kill your app otherwise. It was the same logic like forever. |
@ex3ndr You can check the commit to see wether we stop it :). |
🤔 I don't have iOS13.0 or 13.1 now :), is this not a crash, right? it terminated by system after seconds, and I think we stop the background task in time, we can have two options to fix this:
@radko93 What do you think? |
@zhongwuzw we should make the users safe now, then we can bring this back improved. |
FYI let's keep the discussion under #27073 - that's the PR against master and will be easier to manage for other maintainers. Meanwhile, I think it's fair to revert something that causes a major regression. We can always re-iterate again. |
…27073) Summary: This PR reverts commit 3382984 that is causing #26696 #26995. > app would be closed immediately after going to background on iOS 13.1/13.2 and was investigated by minhtc #26696 (comment). The commit that is being reverted is apparently causing the app to be closed immediately. This has to be reverted in master separately as the file differs there. Similar PR for 0.61. branch #27065 ## Changelog [iOS] [Fixed] - Fix apps crashing on iOS 13.x when running timer in the background Pull Request resolved: #27073 Test Plan: Try [this](3382984#commitcomment-35745287) snippet on iOS 13.1/13.2, the app should not crash anymore Differential Revision: D18323679 Pulled By: cpojer fbshipit-source-id: 3af7036a0e1d3811924e581c649b16e5a4667e83
This reverts commit 3382984
Summary
This is related #26696 - an issue where the app would be closed immediately after going to background on iOS 13.1/13.2 and was investigated by @minhtc #26696 (comment). The commit that is being reverted is apparently causing the app to be closed immediately. This has to be reverted in master separately as the file differs there.
Changelog
[iOS] [Fixed] - Reverts commit causing a crash in the background
Test Plan
Create an empty app on 0.61.x with a timer, put it in the background.