Quit application in titanium (iOS) -


what equivalent ios to:

 win.close();  var activity = titanium.android.currentactivity;  activity.finish(); 

thanks!

there isn't (in titanium). further, apple explicitly discourages this:

"an ios app never displays close or quit option" - apple, hig p27 https://developer.apple.com/library/ios/documentation/userexperience/conceptual/mobilehig/mobilehig.pdf

there existing answers regarding this:

on iphone there no concept of quitting app. action should cause app quit touching home button on phone, , that's not developers have access to.

according apple, app should not terminate on own. since user did not hit home button, return home screen gives user impression app crashed. confusing, non-standard behavior , should avoided.

see existing answer here: proper way exit iphone application?

if, after this, want non-standard, will-probably-get-your-app-rejected solution (or if app isn't destined app store, , distributed privately through enterprise distribution or personal use), can create module calls [[nsthread mainthread] exit].


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -