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分
- マージ済み PR(30日)
- 7
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 日以内に返信