[TIMOB-23696] Windows: Ti.App._restart() does not function correctly
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-08-04T01:57:58.000+0000 |
Affected Version/s | Release 5.4.0 |
Fix Version/s | Release 6.0.0 |
Components | Windows |
Labels | LiveView |
Reporter | Gary Mathews |
Assignee | Kota Iguchi |
Created | 2016-07-28T08:50:26.000+0000 |
Updated | 2016-10-03T13:44:07.000+0000 |
Description
LiveView requires
Ti.App._restart()
in order to function correctly. This should reload the application instead of exiting (like it does currently).
*TEST CASE*
var win = Ti.UI.createWindow({ backgroundColor: 'blue' }),
btn = Ti.UI.createButton({ title: 'Ti.App._restart()' });
setTimeout(function () {
win.backgroundColor = 'red';
}, 2000);
btn.addEventListener('click', function () {
Ti.App._restart();
});
win.add(btn);
win.open();
master: https://github.com/appcelerator/titanium_mobile_windows/pull/794
https://github.com/appcelerator/titanium_mobile_windows/pull/796
Verified using: Windows 10 Pro Appc CLI: 6.0.0-55 Appc NPM: 4.2.8-7 Ti SDK: 6.0.0.v20161002235150 Lumia 550 10.0 Ti.App._restart() will now reset an app to its initial state. Full testing of the API will take place when liveview testing occurs in 6.1.0 Closing ticket