Page 1 of 1

Terminate application [CLOSED]

Posted: Thu Oct 29, 2015 12:37 am
by h_kos
Is there a way to terminate the application?

Environment.Exit(...) is not supported (Beta 5.1).

Is there a way to achieve this?

Re: Terminate application

Posted: Thu Oct 29, 2015 8:24 am
by JS-Support @Userware
Hello,

As the application is supposed to run in the web browser (and/or on mobile devices where apps cannot close themselves, such as iOS/Android/...), can you please elaborate on what behavior would you expect Environment.Exit(...) to have?

Please note that it is not possible for the browser page to "close itself" due to web browser security restrictions (the general rule appears to be that "javascript is not allowed to close a window that was not opened by that same javascript").

Thanks,
Regards,
JS-Support

Re: Terminate application

Posted: Thu Oct 29, 2015 11:22 pm
by h_kos
Hi,
thank you for your fast reply. From your point of view your explanation makes sense to me and I understand.
Closing the app (i.e. the browser page) would just be desireable to give the user the feeling of a real mobile app,
but this can be argued away :)