[@capacitor/dialog] Dialog doesn't open when another Controller is Presenting
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- ios
- Domain
- mobile
Research direction
Reproduce the issue on iOS by opening the @capgo/inappbrowser web view, then calling Dialog.alert and checking the iOS console for the presentation warning. Trace the iOS dialog presentation path and the active InAppBrowser controller; done means the alert appears above the browser as it already does on Android.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Java
- Stars
- 682
- Forks
- 689
- Avg merge
- 5d 11h
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ionic-team/capacitor-plugins
-
[@capacitor/app] iOS: 'Expression implicitly coerced from String? to Any' warning in getAppLanguageOpentriage
Difficulty 1/5 Under an hour Newbie friendliness 88/100
ionic-team/capacitor-plugins#2604 ·
-
platform: ios
Difficulty 4/5 3-5 days Newbie friendliness 58/100
ionic-team/capacitor-plugins#2603 · 1 comment ·
-
platform: android
Difficulty 3/5 1-2 days Newbie friendliness 76/100
ionic-team/capacitor-plugins#2599 ·
-
platform: ios
Difficulty 3/5 1-2 days Newbie friendliness 68/100
ionic-team/capacitor-plugins#2595 · 1 reaction ·
-
platform: android triage
Difficulty 4/5 3-5 days Newbie friendliness 48/100
ionic-team/capacitor-plugins#2593 ·
All issues in ionic-team/capacitor-plugins
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
beehive-lab/TornadoVM#1151 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
FasterXML/jackson-dataformats-binary#823 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day