Skip to content

feat(barcode-scanning): Support iOS multitasking camera access#307

Merged
robingenz merged 4 commits intocapawesome-team:mainfrom
pablophg:main
Nov 29, 2025
Merged

feat(barcode-scanning): Support iOS multitasking camera access#307
robingenz merged 4 commits intocapawesome-team:mainfrom
pablophg:main

Conversation

@pablophg
Copy link
Copy Markdown
Contributor

@pablophg pablophg commented Nov 27, 2025

Pull request checklist

Please check if your PR fulfills the following requirements:

  • The changes have been tested successfully.
  • A changeset has been created (npm run changeset).
  • I have read and followed the pull request guidelines.

Close #306

Copy link
Copy Markdown
Member

@robingenz robingenz left a comment

Choose a reason for hiding this comment

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

Just a minor change needed. Please make sure to test your changes and set your PR to ready for review.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Nov 27, 2025

Open in StackBlitz

@capacitor-mlkit/barcode-scanning

npm i https://pkg.pr.new/capawesome-team/capacitor-mlkit/@capacitor-mlkit/barcode-scanning@307

@capacitor-mlkit/document-scanner

npm i https://pkg.pr.new/capawesome-team/capacitor-mlkit/@capacitor-mlkit/document-scanner@307

@capacitor-mlkit/face-detection

npm i https://pkg.pr.new/capawesome-team/capacitor-mlkit/@capacitor-mlkit/face-detection@307

@capacitor-mlkit/face-mesh-detection

npm i https://pkg.pr.new/capawesome-team/capacitor-mlkit/@capacitor-mlkit/face-mesh-detection@307

@capacitor-mlkit/selfie-segmentation

npm i https://pkg.pr.new/capawesome-team/capacitor-mlkit/@capacitor-mlkit/selfie-segmentation@307

@capacitor-mlkit/subject-segmentation

npm i https://pkg.pr.new/capawesome-team/capacitor-mlkit/@capacitor-mlkit/subject-segmentation@307

@capacitor-mlkit/translation

npm i https://pkg.pr.new/capawesome-team/capacitor-mlkit/@capacitor-mlkit/translation@307

commit: 95f48c1

@robingenz robingenz marked this pull request as ready for review November 29, 2025 15:29
@robingenz
Copy link
Copy Markdown
Member

@pablophg Please test the changes using the pre-release and let me know if everything works so we can merge this.

@pablophg
Copy link
Copy Markdown
Contributor Author

@pablophg Please test the changes using the pre-release and let me know if everything works so we can merge this.

I tested the changes and the behaviour is as expected on iPad:

  • No enableMultitaskingCameraAccess (or manually set to false):
IMG_0057
  • enableMultitaskingCameraAccess set to true:
IMG_0058 (1)

This works as expected for this feature.

Now, there's one corner case, and in any case, I think should be implemented as a separate feature:

  • When on iPad OS 26, if an iPhone app (no iPad support) is launched wiithin an iPad, it launches in windowed mode. If such app only supports upright portrait mode on iPhone, when opening it on an iPad, if the iPad is on landscape, the camera feed appears to be rotated (see my second screenshot). This is probably overlooked by Apple.

In my app I solve this by rotating the camera feed to align with iPads oorientation even if my app only supports one orientation, due to how Apple handles opening this iPhone-only app on iPads. It is a very specific case and I'd say not related directly to this feature.

To cover this corner case, a feature that allows auto-rotating the view, could be implemented appart from this one. What do you think? Or you think it should be part of this same version?

@robingenz
Copy link
Copy Markdown
Member

I also think it's not related to this issue. Thank you for testing!

@robingenz robingenz merged commit 5c71c6b into capawesome-team:main Nov 29, 2025
6 checks passed
@github-actions github-actions bot mentioned this pull request Nov 29, 2025
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.

feat: Support multitasking on iPad

2 participants