diff --git a/CHANGELOG.md b/CHANGELOG.md
index 03c546b2..265d0d4b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
# CHANGELOG
+## 4.15.3 — 2024-05-14
+* [Android] Fix bug in .getCurrentPosition not returning or throwing an error in a condition where Network OFF and GPS ON.
+* Fix bug in .changePace exception-handling, throwing a `FormatException` instead of `PlatformException`.
+
## 4.15.2 — 2024-04-22
* [iOS] Code-sign `TSLocationManager.xcframework` with new Apple Organization (*9224-2932 Quebec Inc*) certificate.
diff --git a/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar b/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar
index 618f75b1..cf3db619 100644
Binary files a/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar and b/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar differ
diff --git a/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar.md5 b/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar.md5
index ba48031f..5c316d15 100644
--- a/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar.md5
+++ b/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar.md5
@@ -1 +1 @@
-ef24420944e46ec3be54a938ace6ea5b
\ No newline at end of file
+229865a9fe5b2e995e9dfce108342ddb
\ No newline at end of file
diff --git a/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar.sha1 b/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar.sha1
index ff58771d..ef21b80a 100644
--- a/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar.sha1
+++ b/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar.sha1
@@ -1 +1 @@
-5ffb007eee69e2670b1addd2dc467289671cf3d9
\ No newline at end of file
+488102e8cf03ea0548853807c067a3def43d3a0a
\ No newline at end of file
diff --git a/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar.sha256 b/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar.sha256
index f3b1f94c..af1fe2f4 100644
--- a/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar.sha256
+++ b/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar.sha256
@@ -1 +1 @@
-6d18e0695079ef503e690852c4482688e017de7bb566724732cc6bb9e0b8f3c2
\ No newline at end of file
+46fbac083502efa621c17339f576a5a05ad3b3f96de481295187e76cbae1a38c
\ No newline at end of file
diff --git a/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar.sha512 b/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar.sha512
index 9fd99747..2c55a9e0 100644
--- a/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar.sha512
+++ b/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar.sha512
@@ -1 +1 @@
-0217b0a97fe4a3379d2e56197a99d5664269f7ef8b985dbcaa5e4b587e0335021ebf3e88f2d0742e9e7f119374dfd2c9cb42c01ea0f681b75b26a9d460092235
\ No newline at end of file
+ab32b05cc9ed5d0cb741a0235aced32ebbc22e65b43f41fa8f821e3c948e6063f1b0169ca5899c554d700b02b79d2e6c449d242b260a3724ead6e5a938b7def4
\ No newline at end of file
diff --git a/android/libs/com/transistorsoft/tslocationmanager-v21/maven-metadata.xml b/android/libs/com/transistorsoft/tslocationmanager-v21/maven-metadata.xml
index f5a911b6..35b88ee1 100644
--- a/android/libs/com/transistorsoft/tslocationmanager-v21/maven-metadata.xml
+++ b/android/libs/com/transistorsoft/tslocationmanager-v21/maven-metadata.xml
@@ -13,6 +13,6 @@
3.5.3
3.5.4
- 20240416171250
+ 20240503133701
diff --git a/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar b/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar
index 08d57ae8..f24a22dd 100644
Binary files a/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar and b/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar differ
diff --git a/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar.md5 b/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar.md5
index 00c18cd2..8ed35b27 100644
--- a/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar.md5
+++ b/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar.md5
@@ -1 +1 @@
-2061702453bcb97a73dba6b86d1edaf7
\ No newline at end of file
+b13a14d7e2aec102540dbead18e02820
\ No newline at end of file
diff --git a/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar.sha1 b/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar.sha1
index 7afd40ac..b2553130 100644
--- a/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar.sha1
+++ b/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar.sha1
@@ -1 +1 @@
-feb2367f72761f4b699ae58ec047461e9a9234d6
\ No newline at end of file
+b6dc73d8c06005b02c2a862993177e5ba45e7235
\ No newline at end of file
diff --git a/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar.sha256 b/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar.sha256
index 9784c6ae..e31dbd03 100644
--- a/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar.sha256
+++ b/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar.sha256
@@ -1 +1 @@
-d591c768f36f5312337747427dc34e860871086323d975f1388f7d36480a2702
\ No newline at end of file
+b04dfea8f3869e07b3cd6102afdb11f9815b426c5b2c19d88d1056217573076c
\ No newline at end of file
diff --git a/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar.sha512 b/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar.sha512
index ac92b10e..9083a4e9 100644
--- a/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar.sha512
+++ b/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar.sha512
@@ -1 +1 @@
-b37bbbf38d78ae8d1e939475578deed59aa6974b57b2f2875e010d852ed334764ab0b17314468a1cad1b6f96288ecbaa5e66a3d5dbc3dd9ba5b265614685fc3f
\ No newline at end of file
+1414603c8f2960f35def168ac57895547c037441fca07c9bd4ea27055acb8225105fc3fcc32ad70daa5cf125d25ea817a57f9bff6f331a4e214ea2a4144d3098
\ No newline at end of file
diff --git a/android/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml b/android/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml
index e88a54f6..b76ed14f 100644
--- a/android/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml
+++ b/android/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml
@@ -13,6 +13,6 @@
3.5.3
3.5.4
- 20240416171250
+ 20240503133701
diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock
index 1e347daa..b08ec65e 100644
--- a/example/ios/Podfile.lock
+++ b/example/ios/Podfile.lock
@@ -1,11 +1,11 @@
PODS:
- - background_fetch (1.3.2):
+ - background_fetch (1.3.3):
- Flutter
- CocoaLumberjack (3.8.5):
- CocoaLumberjack/Core (= 3.8.5)
- CocoaLumberjack/Core (3.8.5)
- Flutter (1.0.0)
- - flutter_background_geolocation (4.15.1):
+ - flutter_background_geolocation (4.15.2):
- CocoaLumberjack (~> 3.8.5)
- Flutter
- shared_preferences_foundation (0.0.1):
@@ -38,10 +38,10 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/url_launcher_ios/ios"
SPEC CHECKSUMS:
- background_fetch: 2319bf7e18237b4b269430b7f14d177c0df09c5a
+ background_fetch: b431f622572a9aa6f5e84553bc2540806de7889d
CocoaLumberjack: 6a459bc897d6d80bd1b8c78482ec7ad05dffc3f0
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
- flutter_background_geolocation: c6200425adf092ce27df5dd1c1bfe478549f7dfa
+ flutter_background_geolocation: 4be4497d442f388e6426fe9da4e19355593b84d5
shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695
url_launcher_ios: 6116280ddcfe98ab8820085d8d76ae7449447586
diff --git a/example/lib/advanced/home_view.dart b/example/lib/advanced/home_view.dart
index c1d229e7..ffe1cb10 100644
--- a/example/lib/advanced/home_view.dart
+++ b/example/lib/advanced/home_view.dart
@@ -270,7 +270,7 @@ class HomeViewState extends State with TickerProviderStateMixin $_isMoving");
-
+
bg.BackgroundGeolocation.changePace(_isMoving!).then((bool isMoving) {
print('[changePace] success $isMoving');
}).catchError((e) {
diff --git a/example/lib/advanced/main_menu_button.dart b/example/lib/advanced/main_menu_button.dart
index 1d2ae7ff..c17fe383 100644
--- a/example/lib/advanced/main_menu_button.dart
+++ b/example/lib/advanced/main_menu_button.dart
@@ -25,6 +25,8 @@ class MainMenuButtonState extends State {
}
void _onClickSettings() {
+
+
bg.BackgroundGeolocation.playSound(util.Dialog.getSoundId("OPEN"));
Navigator.of(_context).push(MaterialPageRoute(
fullscreenDialog: true,
diff --git a/ios/TSLocationManager.xcframework/Info.plist b/ios/TSLocationManager.xcframework/Info.plist
index 5c71fc60..bb5213cd 100644
--- a/ios/TSLocationManager.xcframework/Info.plist
+++ b/ios/TSLocationManager.xcframework/Info.plist
@@ -23,34 +23,34 @@
BinaryPath
- TSLocationManager.framework/TSLocationManager
+ TSLocationManager.framework/Versions/A/TSLocationManager
LibraryIdentifier
- ios-arm64
+ ios-arm64_x86_64-maccatalyst
LibraryPath
TSLocationManager.framework
SupportedArchitectures
arm64
+ x86_64
SupportedPlatform
ios
+ SupportedPlatformVariant
+ maccatalyst
BinaryPath
- TSLocationManager.framework/Versions/A/TSLocationManager
+ TSLocationManager.framework/TSLocationManager
LibraryIdentifier
- ios-arm64_x86_64-maccatalyst
+ ios-arm64
LibraryPath
TSLocationManager.framework
SupportedArchitectures
arm64
- x86_64
SupportedPlatform
ios
- SupportedPlatformVariant
- maccatalyst
CFBundlePackageType
diff --git a/ios/TSLocationManager.xcframework/_CodeSignature/CodeDirectory b/ios/TSLocationManager.xcframework/_CodeSignature/CodeDirectory
index f808bcab..145a24c9 100644
Binary files a/ios/TSLocationManager.xcframework/_CodeSignature/CodeDirectory and b/ios/TSLocationManager.xcframework/_CodeSignature/CodeDirectory differ
diff --git a/ios/TSLocationManager.xcframework/_CodeSignature/CodeRequirements-1 b/ios/TSLocationManager.xcframework/_CodeSignature/CodeRequirements-1
index a78b00ec..7589d542 100644
Binary files a/ios/TSLocationManager.xcframework/_CodeSignature/CodeRequirements-1 and b/ios/TSLocationManager.xcframework/_CodeSignature/CodeRequirements-1 differ
diff --git a/ios/TSLocationManager.xcframework/_CodeSignature/CodeResources b/ios/TSLocationManager.xcframework/_CodeSignature/CodeResources
index b7faa768..c5bc9060 100644
--- a/ios/TSLocationManager.xcframework/_CodeSignature/CodeResources
+++ b/ios/TSLocationManager.xcframework/_CodeSignature/CodeResources
@@ -174,7 +174,7 @@
ios-arm64/TSLocationManager.framework/_CodeSignature/CodeSignature
- JIUydlr840DWmKKz7Kf83cNCQEI=
+ Fu5wIlTx5ElPdxYjdAujA668eyo=
ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/AtomicBoolean.h
@@ -346,7 +346,7 @@
ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeSignature
- gLD0Gbh6LEAC4/JOu9wMgllNelw=
+ 1U8kIxS24dt/O6C9OxPBfPFd1Io=
ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/AtomicBoolean.h
@@ -989,11 +989,11 @@
hash
- JIUydlr840DWmKKz7Kf83cNCQEI=
+ Fu5wIlTx5ElPdxYjdAujA668eyo=
hash2
- O+HYVwbfk7l8Q5InxzhdEcYwKvms2dyDJAeMm271UfU=
+ pI8MMzrRcn3TYJPOyllds9QKo0yQvyq8k5lD3rtqkMo=
ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/AtomicBoolean.h
@@ -1462,11 +1462,11 @@
hash
- gLD0Gbh6LEAC4/JOu9wMgllNelw=
+ 1U8kIxS24dt/O6C9OxPBfPFd1Io=
hash2
- LqGHISwCmUZEXIPJDuDM0chQWS63xtwhK2nJVcHDj+c=
+ Qfck21/LzoBiITeuA3upqy7j/D3TKwU+hqgOIw4mLTs=
ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/AtomicBoolean.h
diff --git a/ios/TSLocationManager.xcframework/_CodeSignature/CodeSignature b/ios/TSLocationManager.xcframework/_CodeSignature/CodeSignature
index 0063d404..0b3e8943 100644
Binary files a/ios/TSLocationManager.xcframework/_CodeSignature/CodeSignature and b/ios/TSLocationManager.xcframework/_CodeSignature/CodeSignature differ
diff --git a/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeSignature b/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeSignature
index 45dc1818..192c26f1 100644
Binary files a/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeSignature and b/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeSignature differ
diff --git a/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeSignature b/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeSignature
index bd500a6d..ac95ca26 100644
Binary files a/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeSignature and b/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeSignature differ
diff --git a/lib/models/background_geolocation.dart b/lib/models/background_geolocation.dart
index 3c70a49a..c2844d0e 100644
--- a/lib/models/background_geolocation.dart
+++ b/lib/models/background_geolocation.dart
@@ -466,12 +466,8 @@ class BackgroundGeolocation {
/// ```
///
static Future changePace(bool isMoving) async {
- try {
- return (await _methodChannel.invokeMethod('changePace', isMoving))
- as FutureOr;
- } on PlatformException catch (e) {
- throw Error(e);
- }
+ return (await _methodChannel.invokeMethod('changePace', isMoving))
+ as FutureOr;
}
/// Retrieves the current [Location].
diff --git a/pubspec.yaml b/pubspec.yaml
index 0477600a..73e700ab 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,6 +1,6 @@
name: flutter_background_geolocation
description: The most sophisticated background location tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.
-version: 4.15.2
+version: 4.15.3
homepage: https://github.com/transistorsoft/flutter_background_geolocation
dependencies: