[TIMOB-19122] Windows SDK: Needs Ti.App._restart() for LiveView (and others) to work
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-09-24T12:29:13.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.1.0 |
Components | Windows |
Labels | n/a |
Reporter | Fokke Zandbergen |
Assignee | Gary Mathews |
Created | 2015-07-01T08:04:12.000+0000 |
Updated | 2015-11-04T12:53:30.000+0000 |
Description
The Windows SDK does not have
Ti.App._restart()
needed for LiveView, LiveViewer, TiShadow etc to work.
* 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
Is this resolved because it is included by TIMOB-19185?
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
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.