multitasking

Why am I seeing a black screen when my universal application comes back to the foreground?

I have a universal iPhone / iPad application that I'd like to have support multitasking. On a multitasking OS, when my application goes to the background and then returns to the foreground, all I see is a black screen. What could be causing this and how do you suggest I work around it? ...

UILocalNotification repeat sound

Hi, I have used the code from apples example from this page: Link, but I can't seem to get the sound to repeat. I have checked other applications, such as skype (for VOIP) and Alarm Clock Pro (audio?) but I cannot get the sound file to be repeated. This is my code: - (void)applicationDidEnterBackground:(UIApplication *)application { ...

What UIViewController method is called when opening app from background?

Hi, Is there any conventient way of determining if a view is being loaded from the app being in background mode? In 3.X I would rely on viewDidLoad to do some initalization etc., this however is not the case for 4.X, as you cannot rely for the viewDidLoad method to be called. I would like to avoid putting in extra flags to detect this...

IOS3 Compatible App in IOS4 Mutlitasking

Hi All, This is a follow on from http://stackoverflow.com/questions/3648530/iphone-app-submission-issues If I have a IOS3 compatible app, how does it handle in IOS4 in regards to Multitasking? i.e. When the IOS3 app is closed on an IOS4 phone and than they reopen it, will it restart or is it backgrounded/multitasked and when reloaded ta...

Trying to identify problem with core audio vs iPhone background execution

I have an audio app in the store. It works fine with versions of the iPhone OS before iOS 4.0. I am working on a new version, starting by bringing the app into compliance with the new iOS multitasking capabilities. (I have iOS 4.0 on my iPhone, and have upgraded to the latest xCode and SDK.) The result has been a show-stopper. o When ...

Is there a way to forbid multi-tasking in iOS 4?

I want my app to quit when the user taps the home button, without going to the background. Is this possible? ...

Getting exception while setting the locale for running applicaiton in multi task iPhone?

Hi Guys, I have a web view screen in my application, Where I am getting the data in different languages from server. So when I am setting the locale at back end I mean, the application is not closed. While I am setting the locale the application is closed and getting exception. I have done like this, I opened my application went to web...

Refresh view controller content on app entering foreground

I have an app with a tab bar that has a few tabs with user-generated content. When each view controller loads, the viewDidLoad method makes HTTP requests to a server to fetch data, then populates its view correspondingly. Once all the data is loaded, however, the view remains the same (unless the view controller is unloaded and reloaded)...

Multitasking and termination

Is there any possiblity for reacting to the event that a user kills your app via the multitasking bar if it has moved to the background? According to my observations, applicationWillTerminate: does NOT get called. It seems to me that there is no possiblity for cleaning up before quitting in this case. ...

Remote Control Event Causing iOS to Terminate Background App

My app plays background audio using AVAudioPlayer and receives remote control events from iOS. Everything works fine while audio is playing, but if audio is paused and my app is moved into the background, something odd happens. If I use a bluetooth device to resume/unpause the audio after 10 minutes, iOS terminates my app with the foll...

How to play multiple audio files in the background in iOS 4?

Hello everyone... I ran audio in the background in my iPhone app using AVAudioPlayer and AVAudioSession... Now my problem is that I already have a written code that takes a number of songs as input from the user and plays them one after the other using AVAudioPlayer... The problem is that when the app goes to the background while one ...

getting network response when application is in background

I am uploading an image to the web and want it to keep upload even if the app goes into the background. So by using the beginBackgroundTaskWithExpirationHandler, I start uploading the image and then send my app to the background by pressing the home button. The image gets uploaded on the website and I can see it but none of the delegate ...

Can anyone demonstrate how to create an app for iPhone that runs in the background?

I'd like to know if it is technically possible to create an app on iPhone that runs in the background, be it piggybacking while an audio is playing or GPS, VOIP, etc or using a third party API. I was able to create one using audio playback. Now I am looking for other possibilities. I know this will not be approved in app store, but I jus...

Phonegap background service on iOS4?

Can I get a phonegap application running on iOS 4 to have a background service when it's not the active app (e.g. check a url every hour and alert the user if there have been any changes)? And if so, how? ...

App crashes on backgrounding because of SimpleAudioEngine

So I׳m trying to play some effects in my Cocos2D game using SimpleAudioEngine , but after I have added them my app crashes when it goes to background (multitasked). I searched for this problem in the internet but all the solutions that I found didn't work for me. What I did find out is that this problem happens because my app is somehow ...

What to do if I need to support ios4 muititask when build an app?

I am developing an app, it gets a list of locations from internet, and will trigger map app when click one item of the table list. I found when I try to go back from map app (double tap or just one tap of the home key), my app just restart to the first screen. I know ios4 have multitask feature, my app is built with SDK3 and test in m...

iphone 3G multitasking ?

hello, my app works fine in background for iphone 3gs and iphone 4 , if i cracked my iphone 3g in order to support multitasking , whether my app works fine in background mode or not. Thanks Kumar ...

ios4 multitasking controls & background Audio features question

I'm pretty new to IOS4 audio/multitasking and i cant find an answer on this topic: Got a, pretty easy, two part question: What framework works in conjunction with the ipod framework? Everyone's seen the pandora app, so the question is: How do you get the app to notify the user that music is playing (via the purple play icon in the s...

How to use the backgrounder SpringBoardHooks?

I would love to use these hooks for a jailbreak iPhone app. This would allow the app to request to be backgrounded, providing that Backgrounder is installed. Seeing previous questions on StackOverflow, I think I'm not the only one who could use this. What are the steps required? Do I need to extract the private SpringBoard api's, or do ...

iOS 4 Multitasking Tutorial

Hi, I've been looking on google and I've got to page 10 of the results and I still did not find any good guide on how to implement multitasking into my application. Anyone has a good one? Thanks ...