ionic-team / ionic-docs

https://ionicframework.com/docs
Apache License 2.0
579 stars 2.94k forks source link

bug: Controller Toasts #3576

Open user506671 opened 3 months ago

user506671 commented 3 months ago

Describe the Bug

Toast not displayed on emulator or iOS device

Expected Behavior

on Button Click a toast have to displayed.

Steps to Reproduce

Start a Blank IONIC Angular Standalone Blank Project using only the given code of the Tutorial Ion-Toast # Controller Toasts

Works with ionic serve in http but if you build for iOS and load on emulator or device toast not shown up.

Tested with iOS 17.2 and higher

Screenshots

No response

Operating System

MacOS, iOS

Browser

not necessary

Version

iOS 17.2 and higher

Additional Information

Same with Alert Controller. Problem only on Devices (also emulators) if you serve the App for browser there is no Problem

user506671 commented 3 months ago

EDIT: The HTML ion-toast Example works fine. Only the Controller Toast issued.

user506671 commented 3 months ago

Problem will be solved if you put a blank <ion-toast></ ion-toast> in your HTML File.

Please add this info in Documentation or fix this. thanks.