How to close tabris application - tabris

Is it possible to minimize or close tabris application (client side) ?
I wanna accomplish the same behavior that is implement on hardware control. (back button on top level page or home button) but I wanna invoke this when a certain criteria in my app is satisfied.
Thnx

On ios you can not close an application. On Android closing the last open shell (eg by pressing the back button or programmatic) also closes the app.

Related

Make electron window able to receive click event when above keynote app

I am working on electron app where i open a child window which i want to be above all the windows (not above fullscreen windows though), I managed to do it by using
win.setAlwaysOnTop(true, "screen-saver");
It now stays on top of all other open apps and keynote app presentation mode, i want user to be able to click buttons inside my window but now the issue is as soon as user clicks on button or just window in my child window, keynote window minimizes (as focus shifts to my window).
What i tried : I tried almost all available window option given in electron docs with different variations, I also tried playing with modals, but obviously modals stay in window itself, i want to keep main app minimized and keep child window on top of other apps. I also found electron-modal package, but that also behaves same.
working example
I was trying different application to check is any other application is able to do it, and i found that zoom app window (in screen share mode) is able to stay on top of keynote app and you can click buttons inside that app, you can move window, and keynote app keeps running in the background with no issues. I am trying to achieve exactly same behaviour.
This is something that you won't be able to recreate with electron currently, except through a native node module that manipulates your window related OS flags.
You can follow this issue on the Electron repository, since the flags introduced there should resolve your issue, or at least give you a point of entry to make your own PR or node_module.
https://github.com/electron/electron/issues/10078

How to prevent a Chrome App from being closed?

I am building my first local Chrome App using this tutorial
My goal is to build an app that launches fullscreen when the PC is started.
The app can be closed by pressing a certain button (Q) but otherwise the user should not be able to close the app.
Is this possible using Google Chrome Apps? How do you launch fullscreen, and how do you prevent the user from closing the app?
Can you prevent the user right-clicking to inspect the page, or clicking on the top menu bar to close the app?
Sounds like you may want to use kiosk mode. Use this manifest permission for your app, as listed here.
You can enter kiosk mode from the chrome command line as well, with --kiosk.

jquery mobile basic modal dialog intermittently reloads on close

I have a very basic jquery mobile modal dialog that INTERMITTENTLY reloads on clicking "close". This happens across all devices but not on desktop browsers.
The close button always works, but the dialog will pop back up randomly.
Anyone esle experience this. I'd post this on the jquery mobile forum but new registration is broken right now.
So, it's code related but the code won't tell you the what the problem is. The close button on the dialog was directly over the dialog's open button. So when you pressed close, the button beneath it was also being activated to open the dialog again. I moved the position of the close button to not be on top of the open button and that solved it. However, the bigger issue is having touch events read through all layers.

iPhone SDK: How to Kill my app?

I've been trying to create a proper Restart feature within my app, which doesn't work (Orientation is meshing up badly) so since this is a prototype I figure it will be easier if I just crash my app and the user taps again the icon.
Is there a way I could kill my application from code within 1-2 sec.?
Thank you!
You mean you want to quit your app when user taps on home button instead of going the app into background? If yes you can quit the app when user presses home button by adding a key into your info.plist file application does not run in background and set it's value to true. Here is the original key name UIKeySuspendOnExit I don't remember excatly but it should be like this. Find on google you will get easily.

Want app upgraded to 4.0 to exit completely when home button pressed

I am working on an app for iOS 4.0. The app was originally on 2.2.1. I upgraded it to a universal app, but now it seems to be multitasking. When I press the menu button while running the app, instead of exiting it closes, but when I relaunch the app it resumes where I left off. I am assuming this is multitasking. I want it to exit, is there a way in the settings?
My guess is that the iPad target upgrade changed the plist somehow? Any thoughts?
Open your info.plist file
Add The Key UIApplicationExitsOnSuspend or Select Application does not run in background
Set the new key to YES or Fill in the tick box
That's not multitasking, that's Fast app switching which is now the default and is preferred in iOS 4.0.
If you disable it, that means you app has to be reloaded every time the user switches to it instead of allowing it to stay in memory. It will take longer to reload it each time.
It would be better if you implement applicationWillEnterForeground: and refresh your view rather than force the user to have to wait while your app reloads.

Resources