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

Mainland Chinese users always fail to obtain positioning, the error code is 408 #1399

Open
chensh6442 opened this issue Jan 3, 2025 · 13 comments

Comments

@chensh6442
Copy link

Your Environment

  • Plugin version:
  • Platform: Android
  • OS version:
  • Device manufacturer / model:
  • Flutter info (flutter doctor):
  • Plugin config:
PASTE_YOUR_CODE_HERE

Expected Behavior

Actual Behavior

Some users in mainland China always fail to obtain positioning for the first time, with an error code of 408. When the user turns on the VPN and can access the Google website, the positioning is normal. At this time, even if the VPN is turned off, the positioning can still be obtained. What is the reason for this?

Steps to Reproduce

Context

Debug logs

Logs
PASTE_YOUR_LOGS_HERE
@christocracy
Copy link
Member

I have no way to test in China. Is this a Huawei HMS device or play-services device?

@chensh6442
Copy link
Author

Currently, this problem occurs on Oppo phones and Xiaomi phones, but not every device will have this problem.

@christocracy
Copy link
Member

I have no idea.

@chensh6442
Copy link
Author

Does your plug-in need to support Google GMS to obtain positioning? After the user turns on the VPN once, everything is normal when obtaining location.

@christocracy
Copy link
Member

christocracy commented Jan 4, 2025

Does your plug-in need to support Google GMS to obtain positioning?

Yes.

I have no idea what China does to mess this up. There’s nothing I can do.

For Huawei HMS devices, I sell an optional add-on:

https://shop.transistorsoft.com/products/huawei-background-geolocation

@chensh6442
Copy link
Author

How can I troubleshoot this issue? Do you have any suggestions? There are already many Chinese users reporting this problem during the testing phase. I need to solve it as soon as possible.

@christocracy
Copy link
Member

christocracy commented Jan 4, 2025

Like I said: I have no idea.

I don’t believe there is a solution for devices in China with play-services.

@christocracy
Copy link
Member

Google Play Services is not allowed in China.

@chensh6442
Copy link
Author

Then why do many Chinese users do not have VPN installed on their mobile phones, nor do they have Google Play Services installed, but their positioning is normal. Currently this problem does not appear on ios phones

@christocracy
Copy link
Member

I have no idea what goes on in China. All I know is that Google Play Services has been banned in China for years.

this plug-in 100% requires Google Play Services or Huawei HMS.

Users in China using a device without Huawei HMS should not expect this plug-in to work.

@chensh6442
Copy link
Author

Do you mean that if users who keep reporting 408 error codes can install Huawei's HMS service, they will be able to locate normally?

@christocracy
Copy link
Member

They can try.

@chensh6442
Copy link
Author

Ok I will try this solution, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants