Thanks to Erel and his code here:
https://www.b4x.com/android/forum/threads/webviewextras.12453/#post-102448
This enabled the webview to upload files. However, I also need the geolocation functionality. No problem, I added this to the MyChromeClient:
and I added to the manifest
However when I check on getting the geolocation, it doesn't seem to call the onGeolocationPermissionsShowPrompt, and a call for getting the geolocation just fails.
Am I missing something else?
https://www.b4x.com/android/forum/threads/webviewextras.12453/#post-102448
This enabled the webview to upload files. However, I also need the geolocation functionality. No problem, I added this to the MyChromeClient:
B4X:
@Override
public void onGeolocationPermissionsShowPrompt(String origin,
GeolocationPermissions.Callback callback) {
callback.invoke(origin, true, true);
}
B4X:
AddPermission(android.permission.ACCESS_FINE_LOCATION)
However when I check on getting the geolocation, it doesn't seem to call the onGeolocationPermissionsShowPrompt, and a call for getting the geolocation just fails.
Am I missing something else?