RO-3202: Fjern bruk av tillatelsen READ_MEDIA_IMAGES på Android ta i bruk Android Photo Picker#994
RO-3202: Fjern bruk av tillatelsen READ_MEDIA_IMAGES på Android ta i bruk Android Photo Picker#994gruble wants to merge 8 commits into
Conversation
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-994.westeurope.azurestaticapps.net |
There was a problem hiding this comment.
Pull request overview
This PR switches image selection toward Capacitor's newer gallery/photo APIs to support Android Photo Picker and removes the Android READ_MEDIA_IMAGES permission.
Changes:
- Replaces shared camera/gallery handling with separate
takePhoto()andchooseFromGallery()flows. - Updates
@capacitor/camerafrom8.1.0to8.2.0. - Removes
READ_MEDIA_IMAGESfrom the Android manifest.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
src/app/modules/registration/components/edit-images/edit-images.component.ts |
Updates image capture/gallery selection logic to use newer Camera APIs. |
android/app/src/main/AndroidManifest.xml |
Removes the Android media image read permission. |
package.json |
Bumps @capacitor/camera dependency. |
package-lock.json |
Locks the updated camera package version. |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-994.westeurope.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-994.westeurope.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-994.westeurope.azurestaticapps.net |
for henting av bilder fra album
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-994.westeurope.azurestaticapps.net |
Se saken: https://nveprojects.atlassian.net/browse/RO-3202
Vi fikk ikke sendt appen til godkjenning i Google Play fordi vi hadde bedt om tillatelsenREAD_MEDIA_IMAGESi Android. Denne tillatelsen kan vi ikke be om lengre.-> Dette har vi løst ved å fjerne tillatelsen
Har også tatt i bruk en nyere versjon av @capacitor-camera som bruker PhotoPicker i Android.
Dessverre konverterer ikke den nye versjonen av pluginen automatisk fra heic til jpeg når man henter bilder fra album, så vi bruker ikke den nye funksjonen for å hente fra album, kun for å hente bilder fra kameraet.
Det er forsatt problemer med plugin'en som må løses: