Toast: nothing shown on iOS while a view controller is presented over the webview
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- ios, swift
- Área
- backend-api-design, mobile
Línea de trabajo
Start with the iOS implementation of @capacitor/toast and the provided reproduction project, which shows the failure when a view controller is presented by @capacitor/browser. Compare the toast presentation path with the active view controller and use the reproduction steps to verify the behavior. Done means the toast appears over the presented controller; pull request #2644 is already open, so check its status before starting.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug Report
Plugin(s)
@capacitor/toast 8.0.1. Same code in 8.0.2-nightly-20261124 and 9.0.0-alpha.2.
Capacitor Version
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 8.6.2
@capacitor/core: 8.6.2
@capacitor/android: 8.6.2
@capacitor/ios: 8.6.2
Installed Dependencies:
@capacitor/android: not installed
@capacitor/core: 8.6.2
@capacitor/ios: 8.6.2
@capacitor/cli: 8.6.2
[success] iOS looking great! 👌
Platform(s)
iOS
Current Behavior
While a view controller is presented over the webview, Toast.show() shows nothing. In the repro that view controller is @capacitor/browser; an in-app browser plugin does the same. The promise resolves right away, and no toast shows after the view controller is closed either.
Expected Behavior
The toast shows on top of the presented view controller.
Code Reproduction
https://github.com/Albermonte/capacitor-toast-presented-vc-repro
pnpm install && pnpm build && npx cap sync ios && npx cap run ios- Tap "1. Show toast". The toast shows.
- Tap "2. Open Browser, show toast after 3s". After 3 s the app calls
Toast.show(). No toast appears. - Close the Browser. The page shows
Toast.show() called at 3.1s, resolved at 3.1s. A long toast that is on screen resolves about 4 s after the call.
Other Technical Details
Xcode 27.2, iPhone 17 simulator, iOS 27.0.
Additional Context
Same problem as #2538, which was closed without a repro. Recording of steps 3 and 4: https://github.com/Albermonte/capacitor-toast-presented-vc-repro/blob/main/media/before.mp4
- Lenguaje dominante
- Java
- Estrellas
- 688
- Forks
- 690
- Merge medio
- 16 h 15 min
- PR fusionados (30 d)
- 7
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ionic-team/capacitor-plugins
-
platform: android
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ionic-team/capacitor-plugins#2647 ·
Los mantenedores suelen responder en 1 día
-
platform: android
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ionic-team/capacitor-plugins#2646 ·
Los mantenedores suelen responder en 1 día
-
triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
ionic-team/capacitor-plugins#2639 ·
Los mantenedores suelen responder en 1 día
-
platform: android
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
ionic-team/capacitor-plugins#2635 ·
Los mantenedores suelen responder en 1 día
-
triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
ionic-team/capacitor-plugins#2627 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de ionic-team/capacitor-plugins
Issues similares
-
enhancement infra
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día
-
5.0.x backport bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
spring-cloud/spring-cloud-function#1569 ·
Los mantenedores suelen responder en 1 día
-
Move the spring-cloud-commons version and BOM import from the bus parent to the stream parentPosiblemente ocupada @olegz la tomó hoy. Abiertotask
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
spring-cloud/spring-cloud-stream#3355 ·
Los mantenedores suelen responder en 1 día
-
NoSuchMethodError in the circuit breaker since 3.103.0 when resilience4j 2.x is on the classpathAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
oracle/oci-java-sdk#803 ·
-
area:cpan-port area:performance bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
fglock/PerlOnJava#2230 ·
Los mantenedores suelen responder en 1 día