Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23696] Windows: Ti.App._restart() does not function correctly

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-08-04T01:57:58.000+0000
Affected Version/sRelease 5.4.0
Fix Version/sRelease 6.0.0
ComponentsWindows
LabelsLiveView
ReporterGary Mathews
AssigneeKota Iguchi
Created2016-07-28T08:50:26.000+0000
Updated2016-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();

Comments

  1. Gary Mathews 2016-07-29

    master: https://github.com/appcelerator/titanium_mobile_windows/pull/794
  2. Kota Iguchi 2016-08-03

    https://github.com/appcelerator/titanium_mobile_windows/pull/796
  3. Ewan Harris 2016-10-03

    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

JSON Source