Description
Is there an existing issue for this?
- I have searched the existing issues
Description of the bug
When I call googleNavigationViewController.removeMarkers in the map page, I return to the previous page.
Then, I go to the map page again, I can't set the new marker, and the map doesn't show my current location, and the camera can't move. In the log terminal, it throws:
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(viewNotFound, GoogleMapsNavigationViewHandlerError, Stacktrace: ["0 Runner 0x0000000103112f24 $s25google_navigation_flutter9wrapError33_D276C471098E7CA5502A70E6362C3477LLySayypSgGypF + 472", "1 Runner 0x0000000103116e64 $s25google_navigation_flutter15MapViewApiSetupC5setUp15binaryMessenger3apiySo013FlutterBinaryK0_p_AA0deF0_pSgtFZyypSg_yAJctcfU_ + 824", "2 Runner 0x0000000103116888 $sypSgAAIegn_Iegng_yXlSgABIeyBy_IeyByy_TR + 144", "3 Flutter 0x000000010af5e7cc __48-[FlutterBasicMessageChannel setMessageHandler:]_block_invoke + 160", "4 Flutter 0x000000010a9d1768 ___ZN7flutter25PlatformMessageHandlerIos21HandlePlatformMessageENSt3_fl10unique_ptrINS_15PlatformMessageENS1_14default_deleteIS3_EEEE_block_invoke + 116", "5 libdispatch.dylib 0x00000001062a8b98 _dispatch_call_block_and_release + 32", "6 libdispatch.dylib 0x00000001062aa7bc _dispatch_client_callout + 20", "7 libdispatch.dylib 0x00000001062bad58 _dispatch_main_queue_drain + 1084", "8 libdispatch.dylib 0x00000001062ba90c _dispatch_main_queue_callback_4CF + 44", "9 CoreFoundation 0x000000019cb8b710 00E76A98-210C-3CB5-930B-F236807FF24C + 354064", "10 CoreFoundation 0x000000019cb88914 00E76A98-210C-3CB5-930B-F236807FF24C + 342292", "11 CoreFoundation 0x000000019cb87cd8 CFRunLoopRunSpecific + 608", "12 GraphicsServices 0x00000001e1a381a8 GSEventRunModal + 164", "13 UIKitCore 0x000000019f1c090c 1741FA37-4E53-371E-8DAE-D611AAB0043D + 4237580", "14 UIKitCore 0x000000019f2749d0 UIApplicationMain + 340", "15 Runner 0x0000000102624570 main + 64", "16 dyld 0x00000001c0239e4c 71846EAC-EE65-3697-BF7D-790B6A07DCDB + 249420"], null) #0 MapViewApi.awaitMapReady (package:google_navigation_flutter/src/method_channel/messages.g.dart:2201:7) <asynchronous suspension> #1 GoogleMapsNavigationIOS._buildView.<anonymous closure> (package:google_navigation_flutter/src/google_navigation_flutter_ios.dart:100:9) <asynchronous suspension> flutter: isConnect = true [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(viewNotFound, GoogleMapsNavigationViewHandlerError, Stacktrace: ["0 Runner 0x0000000103112f24 $s25google_navigation_flutter9wrapError33_D276C471098E7CA5502A70E6362C3477LLySayypSgGypF + 472", "1 Runner 0x0000000103116e64 $s25google_navigation_flutter15MapViewApiSetupC5setUp15binaryMessenger3apiySo013FlutterBinaryK0_p_AA0deF0_pSgtFZyypSg_yAJctcfU_ + 824", "2 Runner 0x0000000103116888 $sypSgAAIegn_Iegng_yXlSgABIeyBy_IeyByy_TR + 144", "3 Flutter 0x000000010af5e7cc __48-[FlutterBasicMessageChannel setMessageHandler:]_block_invoke + 160", "4 Flutter 0x000000010a9d1768 ___ZN7flutter25PlatformMessageHandlerIos21HandlePlatformMessageENSt3_fl10unique_ptrINS_15PlatformMessageENS1_14default_deleteIS3_EEEE_block_invoke + 116", "5 libdispatch.dylib 0x00000001062a8b98 _dispatch_call_block_and_release + 32", "6 libdispatch.dylib 0x00000001062aa7bc _dispatch_client_callout + 20", "7 libdispatch.dylib 0x00000001062bad58 _dispatch_main_queue_drain + 1084", "8 libdispatch.dylib 0x00000001062ba90c _dispatch_main_queue_callback_4CF + 44", "9 CoreFoundation 0x000000019cb8b710 00E76A98-210C-3CB5-930B-F236807FF24C + 354064", "10 CoreFoundation 0x000000019cb88914 00E76A98-210C-3CB5-930B-F236807FF24C + 342292", "11 CoreFoundation 0x000000019cb87cd8 CFRunLoopRunSpecific + 608", "12 GraphicsServices 0x00000001e1a381a8 GSEventRunModal + 164", "13 UIKitCore 0x000000019f1c090c 1741FA37-4E53-371E-8DAE-D611AAB0043D + 4237580", "14 UIKitCore 0x000000019f2749d0 UIApplicationMain + 340", "15 Runner 0x0000000102624570 main + 64", "16 dyld 0x00000001c0239e4c 71846EAC-EE65-3697-BF7D-790B6A07DCDB + 249420"], null) #0 MapViewApi.awaitMapReady (package:google_navigation_flutter/src/method_channel/messages.g.dart:2201:7) <asynchronous suspension> #1 GoogleMapsNavigationIOS._buildView.<anonymous closure> (package:google_navigation_flutter/src/google_navigation_flutter_ios.dart:100:9) <asynchronous suspension>
Flutter version
3.27.0
Package version
0.5.2
Native SDK versions
- I haven't changed the version of the native SDKs
Flutter Doctor Output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.0, on macOS 15.2 24C101 darwin-arm64, locale
en-VN)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✗] Chrome - develop for the web (Cannot find Chrome executable at
/Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.99.3)
[✓] Connected device (4 available)
! Error: Browsing on the local area network for Son's iPhone. 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 Son’s Ipad. 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)
[✓] Network resources
Steps to reproduce
- on iOS device
- Call .removeMarkers() method on the map page
- Return to the previous page
- Go to the map page
Expected vs Actual Behavior
Can insert the new marker, and move camera
Code Sample
// Example code here
Additional Context
No response