Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6246] Android: alert() function doesn't block

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2016-08-22T23:30:19.000+0000
Affected Version/sRelease 1.7.5, Release 1.8.0, Release 1.8.0.1
Fix Version/sn/a
ComponentsAndroid
Labelstbs-1.9.0
ReporterAllen Yeung
AssigneeIngo Muschenetz
Created2011-11-21T00:07:53.000+0000
Updated2017-03-23T22:35:27.000+0000

Description

Steps To Reproduce: 1. Launch Application 2. Base UI > Views > Alert Dialog > Double Alert 3. Click Basic Alert twice Actual Result: The second alert is shown before the first one Expected Result: The first dialog that says "you should see this first" should be shown first.

Comments

  1. Chris Barber 2016-08-22

    Can we block? This is both a technical question and a behavior change question. We've had this non-blocking behavior since the dawn of time. According to the docs https://docs.appcelerator.com/platform/latest/#!/api/Global, it states: {quote} Note that unlike a web browser-based version of alert, the method is asynchronous. However, only one alert dialog will be visible and modal at a time. Be aware that this method may be removed in the future. {quote} While the alert doesn't block the JavaScript execution, it apparently blocks other alerts from being displayed at the same time. Perhaps this ticket should be resolved as won't fix? [~ingo] thoughts?
  2. Ingo Muschenetz 2016-08-22

    Based on the number of requests/watchers, I'm fine marking as won't fix. If somehow people decide that it's super-important, we can revisit.
  3. Chris Barber 2016-08-22

    Marking as won't fix for the reasons above.
  4. Lee Morris 2017-03-23

    Closing ticket as Won't Fix with reference to the above comments.

JSON Source