Skip to content

Commit 91cc487

Browse files
Merge pull request #41 from MetaMask/chore/kylan/geolocation-alert
Add URL information about geolocation user info request
2 parents 64ffaa0 + 52f30da commit 91cc487

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/reactnativecommunity/webview/RNCWebChromeClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public void onGeolocationPermissionsShowPrompt(String origin, GeolocationPermiss
245245
requestPermissions(Collections.singletonList(Manifest.permission.ACCESS_FINE_LOCATION));
246246

247247
} else {
248-
String alertMessage = String.format("Allow this app to use your location?");
248+
String alertMessage = String.format("Allow %s to use your location?", origin);
249249
AlertDialog.Builder builder = new AlertDialog.Builder(this.mWebView.getContext());
250250
builder.setMessage(alertMessage);
251251
builder.setCancelable(false);

0 commit comments

Comments
 (0)