digidem / mapeo-mobile

Monitor and document the world around you
GNU General Public License v3.0
95 stars 16 forks source link

sharing observation containing attachment does not work on Android 12+ #1097

Open achou11 opened 1 year ago

achou11 commented 1 year ago

pressing the Share button on the observation screen does not do anything when the observation contains an attachment. in development, doing so surfaces the following error message:

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.",

see https://github.com/react-native-share/react-native-share/issues/1073 for reporting of issue in react-native-share