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

Started setting our debug background task id to invalid#12999

Merged
gaaclarke merged 1 commit into
flutter-team-archive:masterfrom
gaaclarke:background-task-invalid
Oct 8, 2019
Merged

Started setting our debug background task id to invalid#12999
gaaclarke merged 1 commit into
flutter-team-archive:masterfrom
gaaclarke:background-task-invalid

Conversation

@gaaclarke

Copy link
Copy Markdown
Contributor

after completion

Relevant Issue: flutter/flutter#41095

@gaaclarke
gaaclarke requested a review from jmagman October 8, 2019 17:58
@gaaclarke

Copy link
Copy Markdown
Contributor 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
Copy Markdown
Contributor

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
Copy Markdown
Contributor 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.

@jmagman jmagman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@gaaclarke

Copy link
Copy Markdown
Contributor 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-team-archive: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
git@github.com:flutter/engine.git/compare/c635d70c7266...21b8224

git log c635d70..21b8224 --no-merges --oneline
2019-10-08 gspencergoog@users.noreply.github.com Send AccessibilityEvent.TYPE_VIEW_FOCUSED when input focus is set. (flutter-team-archive/engine#12746)
2019-10-08 dnfield@google.com Fix for a11y crash on iOS (flutter-team-archive/engine#12990)
2019-10-08 katelovett@google.com Link Semantics Typo (flutter-team-archive/engine#13009)
2019-10-08 ferhat@gmail.com [web] Add support for path transform (flutter-team-archive/engine#12794)
2019-10-08 jason-simmons@users.noreply.github.com Auto-formatter fixes for BUILD.gn files (flutter-team-archive/engine#13005)
2019-10-08 bkonyi@google.com Unblock SIGPROF on flutter_tester start (flutter-team-archive/engine#12813)
2019-10-08 mouad.debbar@gmail.com [web] Update the url when route is replaced (flutter-team-archive/engine#13003)
2019-10-08 katelovett@google.com Missing link flag (flutter-team-archive/engine#13001)
2019-10-08 30870216+gaaclarke@users.noreply.github.com Started setting our debug background task id to invalid after completion. (flutter-team-archive/engine#12999)
2019-10-08 ychris@google.com Add `onUnregistered` callback in 'Texture' and 'FlutterTexture' (flutter-team-archive/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 chinmaygarde@google.com 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
git@github.com:flutter/engine.git/compare/c635d70c7266...21b8224

git log c635d70..21b8224 --no-merges --oneline
2019-10-08 gspencergoog@users.noreply.github.com Send AccessibilityEvent.TYPE_VIEW_FOCUSED when input focus is set. (flutter-team-archive/engine#12746)
2019-10-08 dnfield@google.com Fix for a11y crash on iOS (flutter-team-archive/engine#12990)
2019-10-08 katelovett@google.com Link Semantics Typo (flutter-team-archive/engine#13009)
2019-10-08 ferhat@gmail.com [web] Add support for path transform (flutter-team-archive/engine#12794)
2019-10-08 jason-simmons@users.noreply.github.com Auto-formatter fixes for BUILD.gn files (flutter-team-archive/engine#13005)
2019-10-08 bkonyi@google.com Unblock SIGPROF on flutter_tester start (flutter-team-archive/engine#12813)
2019-10-08 mouad.debbar@gmail.com [web] Update the url when route is replaced (flutter-team-archive/engine#13003)
2019-10-08 katelovett@google.com Missing link flag (flutter-team-archive/engine#13001)
2019-10-08 30870216+gaaclarke@users.noreply.github.com Started setting our debug background task id to invalid after completion. (flutter-team-archive/engine#12999)
2019-10-08 ychris@google.com Add `onUnregistered` callback in 'Texture' and 'FlutterTexture' (flutter-team-archive/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 chinmaygarde@google.com 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

Development

Successfully merging this pull request may close these issues.

3 participants