Toast: nothing shown on iOS while a view controller is presented over the webview
维护者通常 1 天内回复
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- ios, swift
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Java
- 星标
- 688
- 派生
- 690
- 平均合并
- 16 小时 15 分钟
- 30 天内合并 PR
- 7
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ionic-team/capacitor-plugins 的其他 Issue
-
platform: android
难度 2/5 1-3 小时 新手友好度 78/100
ionic-team/capacitor-plugins#2647 ·
维护者通常 1 天内回复
-
platform: android
难度 2/5 1-3 小时 新手友好度 78/100
ionic-team/capacitor-plugins#2646 ·
维护者通常 1 天内回复
-
triage
难度 2/5 1-3 小时 新手友好度 70/100
ionic-team/capacitor-plugins#2639 ·
维护者通常 1 天内回复
-
platform: android
难度 2/5 1-3 小时 新手友好度 88/100
ionic-team/capacitor-plugins#2635 ·
维护者通常 1 天内回复
-
triage
难度 2/5 1-3 小时 新手友好度 80/100
ionic-team/capacitor-plugins#2627 · 1 条评论 ·
维护者通常 1 天内回复
查看 ionic-team/capacitor-plugins 的全部 Issue
相似的 Issue
-
enhancement infra
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
5.0.x backport bug
难度 1/5 1 小时以内 新手友好度 68/100
spring-cloud/spring-cloud-function#1569 ·
维护者通常 1 天内回复
-
Move the spring-cloud-commons version and BOM import from the bus parent to the stream parent可能已有人在做 @olegz 今天认领。 未关闭task
难度 2/5 1-3 小时 新手友好度 74/100
spring-cloud/spring-cloud-stream#3355 ·
维护者通常 1 天内回复
-
NoSuchMethodError in the circuit breaker since 3.103.0 when resilience4j 2.x is on the classpath未关闭
难度 2/5 1-3 小时 新手友好度 76/100
oracle/oci-java-sdk#803 ·
-
area:cpan-port area:performance bug
难度 2/5 1-3 小时 新手友好度 72/100
fglock/PerlOnJava#2230 ·
维护者通常 1 天内回复