Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[@capacitor/dialog] Dialog doesn't open when another Controller is Presenting

オープン
#2,404 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
ios
領域
mobile

調査の方向性

@capgo/inappbrowser の WebView を開いてから Dialog.alert を呼び出し、iOS コンソールで表示に関する警告を確認して、iOS で問題を再現します。iOS のダイアログ表示経路とアクティブな InAppBrowser コントローラを追跡します。Android ですでにそうなっているように、ブラウザの上に alert が表示されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

platform: ios

Bug Report

Plugin(s)

"@capacitor/android": "^7.4.0",
"@capacitor/app": "7.0.1",
"@capacitor/core": "7.4.3",
"@capacitor/device": "^7.0.2",
"@capacitor/dialog": "^7.0.2",
"@capacitor/haptics": "7.0.1",
"@capacitor/ios": "^7.4.0",
"@capacitor/keyboard": "7.0.1",
"@capacitor/splash-screen": "^7.0.2",
"@capacitor/status-bar": "7.0.1",
"@capgo/capacitor-native-biometric": "^7.1.13",
"@capgo/inappbrowser": "^7.16.4",

Capacitor Version
💊   Capacitor Doctor  💊 

Latest Dependencies:

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

Installed Dependencies:

  @capacitor/cli: 7.4.0
  @capacitor/android: 7.4.3
  @capacitor/core: 7.4.3
  @capacitor/ios: 7.4.3

[success] iOS looking great! 👌
[success] Android looking great! 👌
Platform(s)

iOS

Current Behavior

When trying to present the Dialog when the InAppBrowser is on top, the dialog won't show and the following error is silently raised in the iOS console:

Attempt to present <UIAlertController: 0x10500b400> on <Capacitor.CAPBridgeViewController: 0x106008800> (from <Capacitor.CAPBridgeViewController: 0x106008800>) which is already presenting <UINavigationController: 0x104059400>.
Expected Behavior

Same as on Android. The dialog should open above the InAppBrowser

Code Reproduction
  • Create a new ionic app for both android and ios
  • install the @capgo/inappbrowser and @capacitor/dialog plugins
  • open a page with the InAppBrowser plugin, using the webview options
 await InAppBrowser.openWebView({
      url: link,
      toolbarType: ToolBarType.COMPACT,
      activeNativeNavigationForWebview: true,
      title,
      toolbarColor: DEFAULT_COLOR,
      toolbarTextColor: '#ffffff',
    });
  • while the Browser is opened, try to trigger an alert:
 await Dialog.alert({
                title: 'title',
                message: 'Message ',
                buttonTitle: 'Close',
              });
Other Technical Details
Additional Context
主要言語
Java
スター
682
フォーク
689
平均マージ
5日 11時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ionic-team/capacitor-plugins のほかの issue

ionic-team/capacitor-plugins の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。