Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug]: status bar is gone after the camera is dismissed (iOS only)

Aperta
#2,310 14 commenti 2 reazioni 0 assegnatari Vedi su GitHub

@ryaa ci sta già lavorando.

Dal 10/4/2025.

  • #2347 di @ryaa — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
ios, swift
Ambito
mobile-dev

Direzione di ricerca

Inizia dal repository di riproduzione collegato ed eseguilo su iOS, quindi segui il flusso Get Photo durante la chiusura della fotocamera o del picker, confrontando la barra di stato prima e dopo l’annullamento. Non è indicato alcun file di progetto né alcun test; il lavoro è completato quando il layout della barra di stato e dell’header rimane invariato dopo l’annullamento di uno dei due flussi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

platform: android platform: ios platform: web type: bug
Capacitor Version

💊 Capacitor Doctor 💊

Latest Dependencies:

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

Installed Dependencies:

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

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

Other API Details
alexryltsov@Alexs-MacBook-Pro-2 master % npm --version
10.5.0
alexryltsov@Alexs-MacBook-Pro-2 master % node --version
v20.11.1
alexryltsov@Alexs-MacBook-Pro-2 master % pod --version
1.16.2
Platforms Affected
  • iOS
  • Android
  • Web
Current Behavior

The status bar is gone after the camera is dismissed/canceled. I ionic header height is changed to take the status bar height - see below

The ion header when the status bar is displayed and before the camera is opened
Image

The ion header after the status bar is gone and after the camera is dismissed/canceled
Image

To reproduce please clone this repo https://github.com/ryaa/capacitor-status-bar-becomes-invisible-issue, build and run it. Then tap Get Photo, select picker or camera and then cancel (don't select image or take a photo). Note that the status bar is gone.

Expected Behavior

Status bar must stay the same

Project Reproduction

https://github.com/ryaa/capacitor-status-bar-becomes-invisible-issue

Additional Information

This issue was reported as an issue to capacitor-community/file-opener - see https://github.com/capacitor-community/file-opener/issues/74#issue-2826009586
Note that in addition to the status bar being gone, there are some warnings shown in XCode console (here is another repo demonstrating the problem https://github.com/capacitor-community/file-opener/issues/74#issuecomment-2631707287)

Please note that everything works fine on Android and for the status bar v6.

Lingua principale
Java
Stelle
685
Fork
691
Merge medio
16h 33m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ionic-team/capacitor-plugins

Tutte le issue di ionic-team/capacitor-plugins

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.