Skip to content

RO-3202: Fjern bruk av tillatelsen READ_MEDIA_IMAGES på Android ta i bruk Android Photo Picker#994

Open
gruble wants to merge 8 commits into
developfrom
fix/android-kamera-fiks
Open

RO-3202: Fjern bruk av tillatelsen READ_MEDIA_IMAGES på Android ta i bruk Android Photo Picker#994
gruble wants to merge 8 commits into
developfrom
fix/android-kamera-fiks

Conversation

@gruble

@gruble gruble commented May 18, 2026

Copy link
Copy Markdown
Contributor

Se saken: https://nveprojects.atlassian.net/browse/RO-3202

Vi fikk ikke sendt appen til godkjenning i Google Play fordi vi hadde bedt om tillatelsen READ_MEDIA_IMAGES i 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:

  • bildene man legger til fra album blir kuttet, man mister altså en del av bildet
  • enkelte bilder blir snudd

@gruble gruble changed the title Fix/android kamera fiks RO-3202: Fix/android kamera fiks May 18, 2026
@gruble gruble changed the title RO-3202: Fix/android kamera fiks RO-3202: Fjern bruk av tillatelsen READ_MEDIA_IMAGES på Android ta i bruk Android Photo Picker May 18, 2026
@github-actions

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-994.westeurope.azurestaticapps.net

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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() and chooseFromGallery() flows.
  • Updates @capacitor/camera from 8.1.0 to 8.2.0.
  • Removes READ_MEDIA_IMAGES from 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.

Comment thread src/app/modules/registration/components/edit-images/edit-images.component.ts Outdated
@github-actions

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-994.westeurope.azurestaticapps.net

@github-actions

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-994.westeurope.azurestaticapps.net

@github-actions

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-994.westeurope.azurestaticapps.net

@github-actions

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-994.westeurope.azurestaticapps.net

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants