Toast: nothing shown on iOS while a view controller is presented over the webview
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- ios, swift
- Lĩnh vực
- backend-api-design, mobile
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Java
- Star
- 688
- Fork
- 690
- Merge trung bình
- 16 giờ 15 phút
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ionic-team/capacitor-plugins
-
platform: android
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ionic-team/capacitor-plugins#2647 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
platform: android
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ionic-team/capacitor-plugins#2646 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
ionic-team/capacitor-plugins#2639 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
platform: android
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
ionic-team/capacitor-plugins#2635 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
ionic-team/capacitor-plugins#2627 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của ionic-team/capacitor-plugins
Issue tương tự
-
enhancement infra
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày
-
5.0.x backport bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
spring-cloud/spring-cloud-function#1569 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Move the spring-cloud-commons version and BOM import from the bus parent to the stream parentCó thể đã có người làm @olegz đã nhận hôm nay. Đang mởtask
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
spring-cloud/spring-cloud-stream#3355 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
NoSuchMethodError in the circuit breaker since 3.103.0 when resilience4j 2.x is on the classpathĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
oracle/oci-java-sdk#803 ·
-
area:cpan-port area:performance bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
fglock/PerlOnJava#2230 ·
Maintainer thường phản hồi trong vòng 1 ngày