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

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.

Related

I want to make sure that windows that are not directly selected in Windows 10 are never TOP of ALL

I wonder if you have a Windows 10 setup or software.
While viewing a browser or another window, the window is forced to switch if one program installation is complete, or if one game is completely loaded.
Is there a way to set the window so that it never changes forcibly unless I choose it?
I can't find any solution.

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

Windows 10 UAP - Application.Suspending event

In Windows 10 universal application which is running in desktop environment, in what cases can be Application.Suspending event fired? One case is closing the app (for example with Alt+F4), are there any other cases? I thought that Alt+Tab would also fire this event but strangely that's not the case, why?
Application.Suspending on Mobile will fire whenever the user navigates to another screen via the task switcher, hitting the back button from the root page, hitting home, on when a phone call is received etc.
On Desktop, it will fire whenever the application is minimized.
However, it will ALSO fire on both desktop AND mobile when the app is on the way to being terminated for any reason.
On Desktop this is when alt+f4 is hit, or the window is closed.
On Mobile, by the time the window is being terminated (low memory or killed in switcher), the Application.Suspending event will have already fired.
Alt+Tab on desktop will not suspend the event as the window is still running as a live preview because it is visible to the user.
Check out this video from Microsoft Virtual Academy for a great look at the Windows Universal App lifecycle, or check out the App Lifecycle docs from MSDN.
Hope this helps

How to close tabris application

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.

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.

Resources