Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Screen remains black after closing/opening app #78

Closed
reinventit opened this issue Nov 6, 2023 · 7 comments
Closed

bug: Screen remains black after closing/opening app #78

reinventit opened this issue Nov 6, 2023 · 7 comments
Labels
bug/fix Something isn't working platform: ios iOS platform

Comments

@reinventit
Copy link
Contributor

Plugin version:
4.2.1

Platform(s):
iOS (at least 16.4)

Current behavior:
When closing the app and re-opening, the screen remains black.

Expected behavior:
App should be renderend again

Steps to reproduce:
Open app, close app and re-open again

Related code:
It seems to be caused by the way modalPresentationStyle of the privacyViewController. It is currently set to 'overFullScreen' and this causes the underlaying view to be unloaded. If we change this to 'fullScreen' everything seems to be working.

Not working for me:

privacyViewController.modalPresentationStyle = UIModalPresentationStyle.overFullScreen

Working correctly for me:

privacyViewController.modalPresentationStyle = UIModalPresentationStyle.fullScreen

Other information:

Capacitor doctor:

💊   Capacitor Doctor  💊 

Latest Dependencies:

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

Installed Dependencies:

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

[success] iOS looking great! 👌
[success] Android looking great! 👌
@robingenz
Copy link
Member

Hi, unfortunately I cannot reproduce your issue, see:

Bildschirmaufnahme 2023-11-06 um 17 40 39

@reinventit
Copy link
Contributor Author

This seems to be different for iPhone / iPad.

Indeed everything works fine on the iPhone, but when I try the same with the iPad simulator the problem exists. Can you try and see if you can reproduce the issue when simulating an iPad?

@robingenz
Copy link
Member

Thanks, i can reproduce this issue with iPadOS 16.4.

@tobiloeb
Copy link

tobiloeb commented Feb 21, 2024

Hi,

maybe I am facing the same issue on MacOS. With Plugin Version >= 4.0.0 an Capacitor 5, I am not able to use the App on MacOS anymore. The App opens correctly at startup, but with the first click anywhere, the App becomes black.

Can you reproduce this as well?

Regards
Tobias

@reinventit
Copy link
Contributor Author

Hi Tobias,

Maybe you can try of my PR fixes your issue as well?

https://github.com/reinventit/privacy-screen/tree/fix-black-screen

Regards,
Rein

@robingenz
Copy link
Member

Does the problem still exist with the latest version?

Copy link

github-actions bot commented Apr 8, 2024

It looks like there hasn't been a reply in 30 days, so I'm closing this issue.

@github-actions github-actions bot closed this as completed Apr 8, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug/fix Something isn't working platform: ios iOS platform
Projects
None yet
Development

No branches or pull requests

3 participants