Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@gaaclarke
Copy link
Member

after completion

Relevant Issue: flutter/flutter#41095

@gaaclarke gaaclarke requested a review from jmagman October 8, 2019 17:58
@gaaclarke
Copy link
Member Author

I don't have an iOS 13 device so I couldn't test it. I tested it on iOS 11 and it works. I've based the change off the research I did in this comment: flutter/flutter#41095 (comment)

expirationHandler:^{
[application endBackgroundTask:_debugBackgroundTask];
if (_debugBackgroundTask != UIBackgroundTaskInvalid) {
[application endBackgroundTask:_debugBackgroundTask];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be done in dealloc as well (add-to-app where this delegate may actually be deallocated)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so. The background task has a retain on the FlutterPluginAppLifeCycleDelegate so it can't be dealloced while it is running.

Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gaaclarke
Copy link
Member Author

This didn't fix the original issue. The original issue seems to be a bug in iOS 13 (see issue for more detains). I'm going to keep this change since I think it is still a positive change.

@gaaclarke gaaclarke merged commit 9f650ed into flutter:master Oct 8, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 8, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 9, 2019
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Oct 9, 2019
[email protected]:flutter/engine.git/compare/c635d70c7266...21b8224

git log c635d70..21b8224 --no-merges --oneline
2019-10-08 [email protected] Send AccessibilityEvent.TYPE_VIEW_FOCUSED when input focus is set. (flutter/engine#12746)
2019-10-08 [email protected] Fix for a11y crash on iOS (flutter/engine#12990)
2019-10-08 [email protected] Link Semantics Typo (flutter/engine#13009)
2019-10-08 [email protected] [web] Add support for path transform (flutter/engine#12794)
2019-10-08 [email protected] Auto-formatter fixes for BUILD.gn files (flutter/engine#13005)
2019-10-08 [email protected] Unblock SIGPROF on flutter_tester start (flutter/engine#12813)
2019-10-08 [email protected] [web] Update the url when route is replaced (flutter/engine#13003)
2019-10-08 [email protected] Missing link flag (flutter/engine#13001)
2019-10-08 [email protected] Started setting our debug background task id to invalid after completion. (flutter/engine#12999)
2019-10-08 [email protected] Add `onUnregistered` callback in 'Texture' and 'FlutterTexture' (flutter/engine#12695)


If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
Inconnu08 pushed a commit to Inconnu08/flutter that referenced this pull request Nov 26, 2019
[email protected]:flutter/engine.git/compare/c635d70c7266...21b8224

git log c635d70..21b8224 --no-merges --oneline
2019-10-08 [email protected] Send AccessibilityEvent.TYPE_VIEW_FOCUSED when input focus is set. (flutter/engine#12746)
2019-10-08 [email protected] Fix for a11y crash on iOS (flutter/engine#12990)
2019-10-08 [email protected] Link Semantics Typo (flutter/engine#13009)
2019-10-08 [email protected] [web] Add support for path transform (flutter/engine#12794)
2019-10-08 [email protected] Auto-formatter fixes for BUILD.gn files (flutter/engine#13005)
2019-10-08 [email protected] Unblock SIGPROF on flutter_tester start (flutter/engine#12813)
2019-10-08 [email protected] [web] Update the url when route is replaced (flutter/engine#13003)
2019-10-08 [email protected] Missing link flag (flutter/engine#13001)
2019-10-08 [email protected] Started setting our debug background task id to invalid after completion. (flutter/engine#12999)
2019-10-08 [email protected] Add `onUnregistered` callback in 'Texture' and 'FlutterTexture' (flutter/engine#12695)


If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants