mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-06-18 12:41:54 -04:00
MOB-765: clarify perm denied behavior
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user