[TIMOB-28126] iOS: Event queue may not flush after exception
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-09-28T17:23:17.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 9.1.1 |
Components | iOS |
Labels | n/a |
Reporter | Josh Longton |
Assignee | Gary Mathews |
Created | 2020-09-09T23:48:42.000+0000 |
Updated | 2020-09-28T17:23:17.000+0000 |
Description
The customer is experiencing a crash but no event is being sent to dashboard, the event should be stored and sent the next time the app is launched.
*Testcase*;
{noformat}
var win = Ti.UI.createWindow({
backgroundColor: "white",
layout: "vertical"
});
var flipBtn = Ti.UI.createButton({
top: 50,
title: "Flip"
});
var controlView = Ti.UI.createView({
});
var view1 = Ti.UI.createView({
elevation: 20,
width: 200,
height: 200,
top: 100,
backgroundColor: "red"
});
controlView.add(view1);
var view2 = Ti.UI.createView({
elevation: 20,
width: 200,
height: 200,
top: 100,
backgroundColor: "green"
});
win.add(flipBtn);
win.add(controlView);
var isShowGreen = false;
flipBtn.addEventListener('click', function () {
if (isShowGreen) {
isShowGreen = false;
view1.show();
controlView.animate({
view: view1,
transition: Ti.UI.iOS.AnimationStyle.FLIP_FROM_LEFT
});
view2.hide();
} else {
isShowGreen = true;
view2.show();
controlView.animate({
view: view2,
transition: Ti.UI.iOS.AnimationStyle.FLIP_FROM_LEFT
});
view1.hide();
}
});
win.open();
{noformat}
*Expected*;
Crash event to appear on dashboard.
master: https://github.com/appcelerator/titanium_mobile/pull/12037
FR Passed, waiting on Jenkins build and backports.