[TIMOB-24305] Android: androidback window, tabgroup event does not fired in SDK 6.0.1.GA, 6.0.0.GA, This works fine for SDK 5.5.1.GA.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2017-01-12T21:44:54.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Itay Avtalyon |
Assignee | Eric Merriman |
Created | 2017-01-12T17:53:34.000+0000 |
Updated | 2017-03-24T18:34:57.000+0000 |
Description
Window's android back event handler is faulty or event not functioning at all. Compare the following code with version 6* of the SDK with version 5.5.1.GA where it works.
Sample code:
var win1 = Titanium.UI.createWindow({
backgroundColor : "white",
});
// Add to the parent view.
win1.add(aWebView);
win1.addEventListener('androidback', function () {
alert("Don't go!");
});
win1.open();
Expected behaviour: When back button clicked in Android, the application should remain open and the alert be shown.
Actual behaviour: Application closes and the alert is never displayed.
Hello, I can verify the issue with the sample code below in SDK 6.0.1.GA, 6.0.0.GA, 5.5.1.GA with Android 6.0.1 device.
androidback event not fired in SDK 6.0.1.GA. This works fine for SDK 5.5.1.GA. Now, I have tried with "windows:back" instead of "androidback' http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Window-event-androidback too. Same result. I even tried it for tabgroup, androidback event not fired in SDK 6.0.1.GA, 6.0.0.GA. This works fine for SDK 5.5.1.GA.
To sum up, androidback event not fired on both window and tabgroup in SDK 6.0.1.GA, 6.0.0.GA. This works fine for SDK 5.5.1.GA.
Already fixed for 6.1.0 in TIMOB-24253
Closing ticket as duplicate with reference to the linked issues.