Android Question Webview can't get GPS location on google map?

hillzx

Member
Licensed User
Longtime User
Hi, is it possible for webview to get GPS location ? I opened an URL in webview web.LoadUrl("https://www.google.com/maps") i click my location button but nothing happen

1. I set this in manifest:
AddManifestText(<uses-feature android:name="android.hardware.location.gps"/>)

2. I added GPS library
3. Already Check permission
Sub Activity_Resume
If Starter.GPS1.GPSEnabled = False Then
ToastMessageShow("Please enable the GPS device.", True)
StartActivity(Starter.GPS1.LocationSettingsIntent) 'Will open the relevant settings screen.
Else
Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_ACCESS_FINE_LOCATION)
End If
End Sub

Sub Activity_PermissionResult (Permission As String, Result As Boolean)
If Permission = Starter.rp.PERMISSION_ACCESS_FINE_LOCATION Then
If Result Then CallSub(Starter, "StartGPS")
End If
End Sub

Google map still doesn't get my current location.
Any help will be appreciated, thank you
 

Attachments

  • gue.jpg
    gue.jpg
    277.1 KB · Views: 792
Top