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.

Camera Preview is Out of Screen on IOS

See original GitHub issue

Describe the bug CameraPreview() is out of bond / Screen when application start for the very first time / coming from lock screen. When user unlock application preview is out of screen again.

To Reproduce Steps to reproduce the behavior:

  1. Open Application very first time / Lock & Unlock screen when application is running.
  2. go to any other view and coming back to home page is working fine.

Expected behavior CameraPreview stay on its place do not change position on lock screen or First time application start.

Screenshots 2022-07-05

Smartphone (please complete the following information):

  • Device: iPhone
  • OS: iOS 15.5

Additional context Working fine on Android. This bug is happening on IOS only. When user Install application and open first time this is happening or user Unlock their phone this is happening. Coming back to home screen form other screen this is not happening.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

pbowyercommented, Jul 20, 2022

Hi @Saqib92, sorry to hear you’ve got problems with the position of the camera. I’ve tried to reproduce this and I can’t make it happen with Capacitor 3.2.5 / Ionic 5. I don’t yet have an Ionic 6 app to test with to see if that’s changed how the layout works, but will try to upgrade to Capacitor 3.6 soon and see what happens.

Saqib92commented, Aug 22, 2022

@Saqib92 you’re right, with “is incompatible” I was implicitly referring to the toBack feature

ohh okay. But is there any workaround for this??

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting a black screen in the Camera app? Here's the fix! - iMore
1. Close and restart the Camera app · 2. Switch between the front and rear cameras · 3. Make sure VoiceOver is turned...
Read more >
Top Five Steps To Fix The IPhone Black Screen Camera ...
Black Screen Problem in iPhone Camera? Follow these simple tips ... To operate such a function, get the preview of the app by...
Read more >
6 ways to fix a black camera screen on your iPhone
To fix a black camera screen on your iPhone, try switching cameras or restarting the Camera app. You can also try turning off...
Read more >
Change advanced camera settings on iPhone - Apple Support
Learn about advanced iPhone camera features that let you capture photos faster, ... To turn off this display, go to Settings > Camera,...
Read more >
iPhone 13/13 Pro: How to Enable/Disable Camera ... - YouTube
Learn how you can enable or disable camera view outside the frame on the iPhone 13 / iPhone 13 Pro/Mini.Gears I use: iPhone...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found