Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19122] Windows SDK: Needs Ti.App._restart() for LiveView (and others) to work

GitHub Issuen/a
TypeNew Feature
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2015-09-24T12:29:13.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.1.0
ComponentsWindows
Labelsn/a
ReporterFokke Zandbergen
AssigneeGary Mathews
Created2015-07-01T08:04:12.000+0000
Updated2015-11-04T12:53:30.000+0000

Description

The Windows SDK does not have Ti.App._restart() needed for LiveView, LiveViewer, TiShadow etc to work.

Comments

  1. Fokke Zandbergen 2015-07-01

    * http://www.geekchamp.com/forums/windows-phone-development/programmatically-terminate-a-windows-phone-8-app * https://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.ui.xaml.application.exit.aspx * https://msdn.microsoft.com/library/windows/apps/system.windows.application.terminate(v=vs.105).aspx
  2. Fokke Zandbergen 2015-09-24

    Is this resolved because it is included by TIMOB-19185?
  3. Ewan Harris 2015-11-04

    Implemented in PR https://github.com/appcelerator/titanium_mobile_windows/pull/436 Verified using: Windows 10 Pro Appc Core: 5.1.0-42 Appc NPM: 4.2.1 Ti SDK: 5.1.0.v2015102819002 Ti.App._restart() is implemented, however when using this method the behavior is different to other platforms as the app is only killed, not restarted. Further testing will be done when liveview is available for testing. Closing ticket
  4. Fokke Zandbergen 2015-11-04

    Restarting apps on Windows is not possible and event exiting them I've seen described as forbidden although I can't find that in official MS docs. However, on iOS we don't do a true restart either but basically revert and then redo our bootstrapping. We might need to do similar on Windows. There's lots of downsides to it unfortunately :( On Android we can just exit and schedule an intent to start again soon after.

JSON Source