Did the delay example work for you in XCode?
The alternative, of course, is to roll your own alert out of ui components, rather than using console.alert. One way I've done something similar is that you would have another alert view that covers the full screen, is partially transparent ( bg_color takes a 4tuple, and the fourth entry is alpha), and contains a subview which is the actual alert. Having the containing view full screen lets you implement a modal type dialog, by blocking touch events for anything underneath, without actually using wait_modal, which has its own problems sometimes. You need to make sure your new view is at the top of the view stack (added last for example), but then can use hidden to show or hide the alert.