fix: legacy picker for real photo GPS on Android 13+, watermark shows place + capture datetime
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user