user_location_plugin
user_location_plugin copied to clipboard
Error using on openstreetmap layer
Describe the bug
════════ Exception caught by gesture ═══════════════════════════════════════════════════════════════ The following NoSuchMethodError was thrown while handling a gesture: The getter 'latitude' was called on null. Receiver: null Tried calling: latitude
When the exception was thrown, this was the stack:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1 _MapsPluginLayerState._moveMapToCurrentLocation (package:user_location/src/user_location_layer.dart:168:33)
#2 _MapsPluginLayerState.build.
════════ Exception caught by services library ══════════════════════════════════════════════════════ MissingPluginException(No implementation found for method listen on channel locationStatusStream) ════════════════════════════════════════════════════════════════════════════════════════════════════
To Reproduce Click on the center icon bottom right
Desktop (please complete the following information):
- OS: iOS iPhone 11 Simulator
up
The location status stream is natively written for Android Devices using Kotlin. I might think that is the reason for the issue, although I am not sure.
Could you try using an android emulator and let me know if the error persists?
Same MissingPluginException(No implementation found for method listen on channel locationStatusStream) here. (both on Samsung GS10 and Android emulator
same here, samsung S7, in my case it was thrown on startup:
The following MissingPluginException was thrown while activating platform stream on channel
locationStatusStream:
MissingPluginException(No implementation found for method listen on channel locationStatusStream)
When the exception was thrown, this was the stack:
#0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:159:7)
<asynchronous suspension>
#1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:334:12)
#2 EventChannel.receiveBroadcastStream.<anonymous closure> (package:flutter/src/services/platform_channel.dart:542:29)
#3 EventChannel.receiveBroadcastStream.<anonymous closure> (package:flutter/src/services/platform_channel.dart:528:64)
#8 _MapsPluginLayerState._handleLocationStatusChanges (package:user_location/src/user_location_layer.dart:227:44)
#9 _MapsPluginLayerState.initialize (package:user_location/src/user_location_layer.dart:102:5)
#18 MethodChannelLocation.hasPermission (package:location_platform_interface/src/method_channel_location.dart)
#27 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart)
(elided 33 frames from dart:async and dart:async-patch)
════════════════════════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by services library ══════════════════════════════════════════════════════
The following MissingPluginException was thrown while activating platform stream on channel locationStatusStream:
MissingPluginException(No implementation found for method listen on channel locationStatusStream)
When the exception was thrown, this was the stack:
#0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:159:7)
<asynchronous suspension>
#1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:334:12)
#2 EventChannel.receiveBroadcastStream.<anonymous closure> (package:flutter/src/services/platform_channel.dart:542:29)
#3 EventChannel.receiveBroadcastStream.<anonymous closure> (package:flutter/src/services/platform_channel.dart:528:64)
is this issue resolved?
I am afraid not.