fix: legacy picker for real photo GPS on Android 13+, watermark shows place + capture datetime

This commit is contained in:
2026-09-08 11:28:02 +07:00
parent 7d77be5029
commit 43a73c541b
3 changed files with 18 additions and 32 deletions
+8
View File
@@ -238,6 +238,14 @@ export default function App() {
allowsEditing: false,
quality: 1,
exif: true,
// Android 13+ photo picker always returns a redacted cache copy with
// assetId=null — EXIF GPS stripped, MediaStore id lost → photo GPS is
// unreachable and we'd stamp the device's location instead. The legacy
// picker (ACTION_GET_CONTENT → DocumentsUI) hands back a
// com.android.providers.media.documents uri, so the MediaStore asset id
// survives AND (with ACCESS_MEDIA_LOCATION granted) the file is not
// redacted → tier-1 EXIF / tier-2 MediaStore both work.
legacy: Platform.OS === 'android' && useGeotag,
});
if (!result.canceled && result.assets && result.assets.length > 0) {