-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Is there an existing issue for this?
- I have searched the existing issues
Description of the bug
I'm trying to mock the user live location by using gpx its not refelcted in navigator view.I'm using background_locator_2 package too.This will cause any issue
Flutter version
3.32.1
Package version
google_navigation_flutter: 0.6.1
Native SDK versions
- I haven't changed the version of the native SDKs
Flutter Doctor Output
[✓] Flutter (Channel stable, 3.32.1, on macOS 15.2 24C101 darwin-arm64
(Rosetta), locale en-IN) [2.1s]
• Flutter version 3.32.1 on channel stable at /Users/madhura/flutter_3.32.1
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision b25305a883 (7 weeks ago), 2025-05-29 10:40:06 -0700
• Engine revision 1425e5e9ec
• Dart version 3.8.1
• DevTools version 2.45.1
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1)
[4.9s]
• Android SDK at /Users/madhura/Library/Android/sdk
• Platform android-35, build-tools 35.0.1
• Java binary at: /Applications/Android
Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on
this machine.
To manually set the JDK path, use: flutter config --jdk-dir="path/to/jdk"
.
• Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.3) [6.3s]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16E140
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [52ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.2) [50ms]
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)
[✓] VS Code (version 1.96.2) [47ms]
• VS Code at /Users/madhura/Downloads/Visual Studio Code.app/Contents
• Flutter extension version 3.114.0
[✓] Connected device (4 available) [7.1s]
• Madhura’s iPhone (wireless) (mobile) • 00008120-00026C1A3A42201E
• ios • iOS 18.5 22F76
• iPhone 16 Pro (mobile) •
FC917F21-F281-4480-8F01-D6858B6EB6C9 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-18-2 (simulator)
• macOS (desktop) • macos
• darwin-arm64 • macOS 15.2 24C101 darwin-arm64 (Rosetta)
• Chrome (web) • chrome
• web-javascript • Google Chrome 138.0.7204.102
! Error: Browsing on the local area network for Iphone 11 neetable. Ensure
the device is unlocked and attached with a cable or associated with the
same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code
-27)
! Error: Browsing on the local area network for chollarasan’s Apple Watch.
Ensure the device is unlocked and discoverable via Bluetooth. (code -27)
[✓] Network resources [2.0s]
• All expected network resources are available.
• No issues found!
Steps to reproduce
- Add on gpx file while running the app in ios
2.Initiate navigator session
3.Location is not updating properly
Expected vs Actual Behavior
User location is not updating in navigator
Code Sample
Future<void> startGuidance(
{required LatLng origin, required Destinations destination}) async {
try {
await GoogleMapsNavigator.initializeNavigationSession();
await GoogleMapsNavigator.simulator.setUserLocation(
origin,
);
final NavigationRouteStatus status =
await GoogleMapsNavigator.setDestinations(destination);
if (status == NavigationRouteStatus.statusOk) {
await navigationViewController?.setNavigationUIEnabled(true);
await navigationViewController?.showRouteOverview();
navigationTimeAndDistance =
await GoogleMapsNavigator.getCurrentTimeAndDistance();
}
} catch (e) {
rethrow;
}
}
Additional Context
No response