Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geolocator.getCurrentPosition not working with huwawei and vivo #1156

Closed
ahmedNagar123 opened this issue Oct 24, 2022 · 9 comments
Closed

Geolocator.getCurrentPosition not working with huwawei and vivo #1156

ahmedNagar123 opened this issue Oct 24, 2022 · 9 comments
Labels
P2 Important issues not at the top of the work list. platform: android Issue is related to the Android platform. status: closed (missing info) Indicates the issue was automatically closed due to a lack of information. status: needs more info We need more information before we can continue work on this issue. type: bug Something isn't working

Comments

@ahmedNagar123
Copy link

Geolocator.getCurrentPosition not working with huwawei and vivo nothing Position returned

@Igormikheev
Copy link

same issue

@wsxc451
Copy link

wsxc451 commented Apr 21, 2023

我也是,三星手机,在浏览器定位可以,但是在flutter,flutter_inappwebview中,无法获取位置

@JeroenWeener
Copy link
Contributor

Hi @ahmedNagar123, thank you for reporting this issue!

You mention the plugin not returning a current position for Huawei and Vivo phones. Can you tell us which exact phones (brand/type) are experiencing this issue?

@JeroenWeener JeroenWeener added status: needs more info We need more information before we can continue work on this issue. platform: android Issue is related to the Android platform. labels Jun 15, 2023
@ahmedNagar123
Copy link
Author

Hi @ahmedNagar123, thank you for reporting this issue!

You mention the plugin not returning a current position for Huawei and Vivo phones. Can you tell us which exact phones (brand/type) are experiencing this issue?

Hi @JeroenWeener thank you for responding
Phones that do not have Google Play Services

@github-actions github-actions bot removed the status: needs more info We need more information before we can continue work on this issue. label Jun 16, 2023
@JeroenWeener JeroenWeener added type: bug Something isn't working P2 Important issues not at the top of the work list. labels Jul 3, 2023
@JeroenWeener
Copy link
Contributor

Hi @ahmedNagar123,

we recently pushed some changes for Android that remedy issues related to receiving no location updates when using the LocationManager, which is what phones without Google Play Services are using. Could you confirm that this issue has been resolved on the newest version of geolocator (10.0.1)?

@JeroenWeener JeroenWeener added the status: needs more info We need more information before we can continue work on this issue. label Sep 15, 2023
@asadfareed777
Copy link

@JeroenWeener Facing same issue on vivo y33s android 13 with google play services in version 10.0.1

@github-actions github-actions bot removed the status: needs more info We need more information before we can continue work on this issue. label Sep 26, 2023
@JeroenWeener
Copy link
Contributor

Hi @asadfareed777. If the device has Google Play Services this is likely a different issue. Could you open a new issue?

A common cause for these types of issues is that the plugin is configured to run with an accuracy of low. In these cases, only drive-by location updates will be emitted; the plugin will not attempt to fetch locations itself.

@JeroenWeener JeroenWeener added the status: needs more info We need more information before we can continue work on this issue. label Sep 26, 2023
@github-actions
Copy link

Without additional information, we are unfortunately not able to resolve this issue. Therefore, we reluctantly closed this issue for now. If you run into this issue later, feel free to file a new issue with a reference to this issue. Add a description of detailed steps to reproduce, expected and current behaviour, logs and the output of 'flutter doctor -v'. Thanks for your contribution.

@github-actions github-actions bot added the status: closed (missing info) Indicates the issue was automatically closed due to a lack of information. label Oct 10, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 10, 2023
@howe-Guo
Copy link

howe-Guo commented Oct 18, 2024

@JeroenWeener
https://github.com/tlserver/flutter_map_location_marker
Run the demo of this project on vivo.

      var position = await Geolocator.getLastKnownPosition();
      position ??= await Geolocator.getCurrentPosition(
          locationSettings:
              LocationSettings(accuracy: LocationAccuracy.low));

Running the demo of this project on vivo, the same code, running on Xiaomi 14U and Huawei mate30 is no problem, but the location information can not be obtained on vivo.

➜  example git:(main) ✗ flutter doctor -v
[✓] Flutter (Channel stable, 3.24.3, on macOS 14.5 23F79 darwin-arm64, locale zh-Hans-CN)
    • Flutter version 3.24.3 on channel stable at /Users/guojiahao/fvm/versions/3.24.3
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2663184aa7 (5 周前), 2024-09-11 16:27:48 -0500
    • Engine revision 36335019a8
    • Dart version 3.5.3
    • DevTools version 2.37.3
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/guojiahao/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/guojiahao/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)
    • All Android licenses accepted.

[✗] Xcode - develop for iOS and macOS
    ✗ Xcode installation is incomplete; a full installation is necessary for iOS and macOS development.
      Download at: https://developer.apple.com/xcode/
      Or install Xcode via the App Store.
      Once installed, run:
        sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
        sudo xcodebuild -runFirstLaunch
    ✗ CocoaPods not installed.
        CocoaPods is a package manager for iOS or macOS platform code.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/to/platform-plugins
      For installation instructions, see https://guides.cocoapods.org/using/getting-started.html#installation

[✓] Android Studio (version 2024.1)
    • 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
    • android-studio-dir = /Applications/Android Studio.app
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.1)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • 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

[✓] VS Code (version 1.91.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
    • V2046A (mobile) • 00008a748d52fb60 • android-arm64 • Android 11 (API 30)

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

➜  example git:(main) ✗ 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Important issues not at the top of the work list. platform: android Issue is related to the Android platform. status: closed (missing info) Indicates the issue was automatically closed due to a lack of information. status: needs more info We need more information before we can continue work on this issue. type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants