MOB-765: clarify perm denied behavior

This commit is contained in:
sepeterson
2026-04-09 16:01:13 -05:00
parent cf3a891a5f
commit c0034f6b8d
2 changed files with 4 additions and 2 deletions

View File

@@ -83,8 +83,7 @@ async function savePhotosToPhotoLibrary(
}
// This means an iOS user denied access
// (https://developer.apple.com/documentation/photokit/phphotoserror/code/accessuserdenied).
// This can happen if the user revokes permission after we checked,
// so we silently skip saving.
// We no longer ask multipe times, so we just continue
if ( error.message.match( /error 3311/ ) ) {
return savedUris;
}

View File

@@ -77,6 +77,9 @@ const usePrepareStoreAndNavigate = ( ) => {
) => {
const newObservation = await Observation.new( );
// 20240709 amanda - this is temporary since we'll want to move this code to
// Suggestions after the changes to permissions github issue is complete, and
// we'll be able to updateObservationKeys on the observation there
if ( userLocation?.latitude ) {
const placeName = await fetchPlaceName( userLocation.latitude, userLocation.longitude );
newObservation.latitude = userLocation?.latitude;