Is it possible to close another app when I open a certain app?
I need to close an app when I run my app.
I can't find any resource related to this.
Related
I'm currently trying to remake our company app that has been outsourced. We do not have access to the source code so its not possible to look at the code. Our outsourced app has a service running in the foreground with a notification. When the outsourced app is closed by the user in the open app list (I'm unsure what it's called) it doesnt really close. Its behavior is almost like it's being minimized. When opening the outsourced app after closing it opens immediately right where it was last left off like it was never closed. Not even a splash screen. It's behavior is like its being resumed.
I've been able to run a foreground service with binding and unbinding following the sample ForegroundLocationTracking embarcadero has given. The app stays open despite the user going to the home screen or locking the phone. The problem comes when the app gets terminated by the user from the open apps list. The app is now terminated and the service briefly gets terminated but gets started by the system again.
My thoughts are that the outsourced app is running a remote service however I'm unsure.
How can I make the app have the same behavior as the outsourced app? The service will keep running in the foreground. No briefly terminating and starting again. The main app must also just resume like the outsourced one does or have the same behaviour.
I'm new to the world of iOS programming.
My goal is to build an application that works even when it's in the background and even when the user eventually closes it, as its purpose is to send data to my web page.
After building the application and making it work in the background, I started searching on the Internet how to make the application work for iOS even when the user closes it.
Starting from the fact that I also developed in Android, I started to do research with the following keywords (service / swift / ios) and I learned that in iOS it is not possible to have an application that works as a 'service' as it happens on Android.
So I wonder, how do applications like Gmail, WhatsApp, iMessage, Telegram work even when they are not active in iOS multitasking?
If the user merely "closes" an app by switching to another app, or locking their iPhone, then iOS APIs such as URLSessionDownloadTask will continue to download data in the background. Apps that play background audio also continue to run when an app is merely closed (but not killed).
However, none of these app tasks will run if a user force closes an app (swipes up in the Springboard launcher).
I am trying to launch ios app from python script/terminal using ios-deploy. This is a test app so it might crash and need to relaunch multiple times.
I want to check if this app is currently running or not on the connected device, for my relaunch logic to work. But I am kind of stuck here.
I know idevicesyslog which can capture logs and then parsing logs I can check if my app is currently running or not. But isn't there any sophisticated way to just check if an app is currently running or not in device. Xcode/instruments can get the list of processes via GUI in connected device but I want a command line utility so that I can take certain action.
You can check app or debug app using safari.
Open safari.
And If develop option not available on top navigation bar then open preferences of safari and in advance tab tick show develop option in below that screen.
I have developed an app and I want to run another app installed on the phone and downloaded from the store (a game) inside a portion of the screen.
As I understood from my search, this is not possible. The next best solution would be to launch the game from my app and always return to it once the game closes.
I have been able to bootstrap a solution with a particular game using URL Schemes but is there a general solution working with any app downloaded from the store?
Do the answers provided there still apply or is it now possible? Can you run an iOS app inside another iOS App
No, you still can not run an app within another app.
The only way to launch another app from your own is by using URL schemes, and there is no way to make a third-party app reopen your original app once the user completes a game.
You cannot directly obtain a list of installed applications to launch, but you could use iHasApp and possibly your own dataset of known URL schemes to check if a given app is installed on the device.
I have an oracle APEX app on ipad as hybrid ipad app built with html5,jquery and uses PhoneGap.
1.Now when I save details on one of the form page->page save process is executing
2.Lock my ipad without waiting to check whether details are saved or not OR goto home and browse through other apps.
3.When i again visit my app,I still see the page as loading.My app freezes.
4.Now I have to close my app and open it newly to check whether details entered are saved or not. This is bit annoying.
The details don't get saved.
What exactly happens to a running app when an ipad is locked OR when we move from running app to any other app?
Can we check if process is getting executed in background?
Can we capture this switch from running app to another OR ipad lock as a jquery/javascript event?
Can we relaunch an app after switch/lock interruption automatically?