question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: ios getPhoto "Select more photos"

See original GitHub issue

Bug Report

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 3.6.0
  @capacitor/core: 3.6.0
  @capacitor/android: 3.6.0
  @capacitor/ios: 3.6.0

Installed Dependencies:

  @capacitor/cli: 3.6.0
  @capacitor/android: 3.6.0
  @capacitor/core: 3.6.0
  @capacitor/ios: 3.6.0

[success] iOS looking great! 👌
[success] Android looking great! 👌

Platform(s)

iOS 15

Current Behavior

When you initially start an App, you will get asked if a user is allowed to select all Photos or only some specific. If the User select some speific and then restart the app and request again a Photo with getPhoto function from Capacitor Camera the Promise will resolve the image data will return and then iOS asks if he want to select more Photos or keep the current selection.

Can this be adjusted to prevent the popup? Because i only want to select one Photo not multiple. image image

Expected Behavior

There are two possible Behaviors.

  1. The iOS Popup should not be shown because it is a single selection and it should not be possible to select more photos.
  2. The Popup will be shown and after the seconds selection the Promise will resolve not before.

Code Reproduction

  1. Install Capacitor
  2. use Capacitor Camera
  3. use getPhoto Method
  4. start the iOS App
  5. select a Image
  6. Wait for the popup and select “Select more photos…” https://github.com/danielehrhardt/ios-getphoto-popup

Other Technical Details

npm --version output:

node --version output:

pod --version output (iOS issues only):

Additional Context

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jcesarmobilecommented, Jul 26, 2022

Sadly that’s the behaviour of the native component used by the Camera plugin to pick images from the gallery and I agree that it’s a terrible UX. It’s not really asking you to select more photos, but to allow more photos to be picked next time.

There is nothing we can do from code, but you can prevent the “Select More Photos” prompt by adding this to your Info.plist

<key>PHPhotoLibraryPreventAutomaticLimitedAccessAlert</key>
<true/>
0reactions
ionitron-bot[bot]commented, Nov 10, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

photos select option bug - Apple Community
There is a serious bug in the camera/photos app, and its been there for several releases, including IOS 14.6.
Read more >
Top 7 Ways to Fix iOS 16 Photo Cutout Not Working
Open your Settings app and hit the “General” option. Now tap "Transfer or Reset iPhone" and choose the "Erase All Content and Settings"...
Read more >
[4 ways] How to Transfer Photos From iPhone to Laptop - 2022
If you use Mac, you can use AirDrop to transfer their photos between devices easily. But if you use Windows users, how to...
Read more >
image_picker | Flutter Package - Pub.dev
Flutter plugin for selecting images from the Android and iOS image library, and taking new pictures with the camera. More.
Read more >
Place Photos | Places API - Google Developers
Generated from the OpenAPI specification. edit Editbug_report Report bug ... All requests to the Place Photo service must include a photoreference ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found