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?
Related
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.
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.
I am working on a VOIP app and need it to auto-start when the iPhone starts up. Everything works 80% of the time. But 20% of the time the app fails to startup. One test scenario is the following:
Open app and type something and save
Reboot phone
Check if app is running by double-tapping the home button but DO NOT open the app.
If app is running, reboot phone again and see if the app comes up again in the background process.
This scenarios works most of the time but not always. Other scenarios also fail at times. Can someone clarify if there is a fool-proof way to start a VOIP iOS app every time the phone boots up?
Thanks.
No, it can't be done. If a user force quits an app, it stays force quit. That's how apple want it, and that's how it's going to be. You can't circumvent the users wishes with multitasking. Also, it's worth knowing that what you see in the fast switcher is not necessarily everything that is running, it's what ios thinks the user should expect to be running ie it may shut something down in the background of its own accord in order to free up resources, but because the user did not initiate it this app will appear to still be open in the switcher, despite that it is not.
Sorry, you can't open an app on startup. You should include a reminder on the app's first start up for the user to keep that app open in the background.
I'm new to iOS programming.
Currently working on an Enterprise Application which is downloaded from the web and suppose to be activated with a URL schema.
When the download and install process is completed the application is started automatically by iOS without the URL schema and without the user activating the application.
At this stage the application is asking the user to activate it with a schema but this Alert is not being displayed, nighter the application main view.
Double click the home button display the splash screen of my application together with other running apps.
When the user press the registration link:
applicationWillEnterForeground is being called.
openURL is being called.
didFinishLaunchingWithOptions is NOT being called.
The application display the register with link (the alert that was not displayed earlier) and exit.
My questions:
Why my application is starting automatically?
[edit] Forgot to mention that this is a VOIP application so iOS gives us a chance to set up the connection.
How come the AlertView is not being displayed?
Is there a way to prevent it?
If there is no way to prevent it, is there a way to detect this state?
I'm using XCode 5 and iOS7 on iPhone 4 (but saw this behaviour on other devices as well).
Thanks,
Yaron