Skip to content

Commit 39ec643

Browse files
committed
Merge branch 'release-1.7.0'
2 parents a998627 + 932131b commit 39ec643

7 files changed

Lines changed: 21 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 1.7.0 — 2026-05-25
4+
* [iOS] Adopt `FlutterSceneLifeCycleDelegate` for Flutter 3.41 UIScene lifecycle support.
5+
* [Changed] Bump minimum Flutter SDK constraint to `>=3.38.0`.
6+
37
## 1.6.2 — 2026-04-20
48
* [Android] Fix `MissingPluginException` on `com.transistorsoft/flutter_background_fetch/methods` after app relaunch when a foreground service kept the process alive post-termination. `HeadlessTask` now destroys its background `FlutterEngine` when the main Activity re-attaches, and `BackgroundFetchModule` tracks method channels per-`BinaryMessenger` so destroying one engine (e.g. a sibling plugin's headless isolate) no longer strips the handler from another engine's channel.
59

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
3737
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
3838
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
39+
784666492D4C4C64000A1A5F /* FlutterFramework */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = FlutterFramework; path = Flutter/ephemeral/Packages/.packages/FlutterFramework; sourceTree = "<group>"; };
40+
78DABEA22ED26510000E7860 /* background_fetch */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = background_fetch; path = ../../ios/background_fetch; sourceTree = "<group>"; };
3941
/* End PBXFileReference section */
4042

4143
/* Begin PBXFrameworksBuildPhase section */
@@ -53,6 +55,8 @@
5355
9740EEB11CF90186004384FC /* Flutter */ = {
5456
isa = PBXGroup;
5557
children = (
58+
78DABEA22ED26510000E7860 /* background_fetch */,
59+
784666492D4C4C64000A1A5F /* FlutterFramework */,
5660
78E0A7A72DC9AD7400C4905E /* FlutterGeneratedPluginSwiftPackage */,
5761
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
5862
9740EEB21CF90195004384FC /* Debug.xcconfig */,

ios/background_fetch.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ Pod::Spec.new do |s|
1818
s.public_header_files = 'background_fetch/Sources/background_fetch/include/**/*.h'
1919
s.dependency 'Flutter'
2020
s.dependency 'TSBackgroundFetch', '~> 4.1.0'
21-
s.ios.deployment_target = '12.0'
21+
s.ios.deployment_target = '13.0'
2222
end
2323

ios/background_fetch/Package.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import PackageDescription
66
let package = Package(
77
name: "background_fetch",
88
platforms: [
9-
.iOS("12.0")
9+
.iOS("13.0")
1010
],
1111
products: [
1212
.library(
@@ -15,13 +15,15 @@ let package = Package(
1515
)
1616
],
1717
dependencies: [
18-
.package(url: "https://github.com/transistorsoft/transistor-background-fetch.git", from: "4.1.0")
18+
.package(url: "https://github.com/transistorsoft/transistor-background-fetch.git", from: "4.1.0"),
19+
.package(name: "FlutterFramework", path: "../FlutterFramework")
1920
],
2021
targets: [
2122
.target(
2223
name: "background_fetch",
2324
dependencies: [
24-
.product(name: "TSBackgroundFetch", package: "transistor-background-fetch")
25+
.product(name: "TSBackgroundFetch", package: "transistor-background-fetch"),
26+
.product(name: "FlutterFramework", package: "FlutterFramework")
2527
],
2628
cSettings: [
2729
.headerSearchPath("include/background_fetch")

ios/background_fetch/Sources/background_fetch/BackgroundFetchPlugin.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ + (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
4747

4848
BackgroundFetchPlugin* instance = [[BackgroundFetchPlugin alloc] init];
4949
[registrar addApplicationDelegate:instance];
50+
if ([registrar respondsToSelector:@selector(addSceneDelegate:)]) {
51+
[registrar addSceneDelegate:instance];
52+
}
5053
[registrar addMethodCallDelegate:instance channel:channel];
5154

5255
NSString *eventPath = [NSString stringWithFormat:@"%@/%@", PLUGIN_PATH, EVENT_CHANNEL_NAME];
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#import <Flutter/Flutter.h>
22

3-
@interface BackgroundFetchPlugin : NSObject<FlutterPlugin>
3+
API_AVAILABLE(ios(13.0))
4+
@interface BackgroundFetchPlugin : NSObject<FlutterPlugin, FlutterSceneLifeCycleDelegate>
45
@end

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: background_fetch
22
description: Periodic callbacks in the background for both iOS and Android. Includes Android Headless implementation.
3-
version: 1.6.2
3+
version: 1.7.0
44
homepage: https://github.com/transistorsoft/flutter_background_fetch
55

66
environment:
77
sdk: ^3.6.0
8-
flutter: ">=3.13.0"
8+
flutter: ">=3.38.0"
99
dependencies:
1010
flutter:
1111
sdk: flutter

0 commit comments

Comments
 (0)