Skip to content

iOS: Black screen after returning to app from external link (regression after updating screen_protector) #61

@codebyniki

Description

@codebyniki

After updating screen_protector, the previous issue with the iOS Accessibility setting “Higher Contrast” is fixed. However, I’m now seeing a new issue: if the app is sent to background by opening an external link (e.g. Safari) and then resumed, the app shows a permanent black screen.

Steps to reproduce

  1. Enable screen protection via screen_protector.
  2. Run the app on iOS.
  3. Open an external link from within the app (e.g. using url_launcher), which backgrounds the app.
  4. Return to the app (app switcher / back to app).

Expected behavior

App resumes normally and UI is visible.

Actual behavior

App resumes to a black screen (UI not rendered). The app remains unresponsive/blank until force-closed and restarted.

Environment

screen_protector: 1.5.1
Flutter: 3.35.7 / Dart: 3.9.2
iOS: 26.3
Affected: iOS only

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions