Questions tagged [backgrounding]

Backgrounding is the act of executing an application while it is in the background.

Backgrounding generally refers to the act of executing an application in the background. This expression is widely used in the context of the Apple iOS operating system where a backgrounded application can continue to execute only if it adheres to specific requirements.

39 questions
1
vote
0 answers

AVAssetReader failing when entering foreground again

In my app I'm processing videos with a AVAssetReader → AVAssetWriter combination. When the app is sent to the background, I pause the video writing (and thus also don't read any longer). When entering the foreground again I want to continue the…
Frank Rupprecht
  • 9,191
  • 31
  • 56
1
vote
0 answers

Detect a new picture has been taken while in background

I have been struggling for quite some time on this issue. I have an app that runs on iPhone (>= iOS7) where I need to pick all the pictures that the user takes (after asking for camera access, of course) and upload them if they meet a certain…
Netrunner
  • 43
  • 5
1
vote
2 answers

How to tell if iPhone application was launched by backgrounding or not

My application uses NSUserDefaults to store some values so that it can restore them on application update or if backgrounding is quit. Backgrounding automatically saves my integer values, but if the user quits the application from the launcher, the…
SeniorShizzle
  • 984
  • 1
  • 11
  • 27
1
vote
1 answer

Perl on background when invoked from another env

I have a Perl script that is supposed to do some work on background. This is well described - I fork, kill (return 0) the parent and do the work in the child. When I run it directly from shell, it works as expected (i.e. returns to shell right after…
baa2w
  • 314
  • 2
  • 11
1
vote
1 answer

Executing background task upon receiving Remote Notifications(Silent Push) on iOS 7

I am currently building an app that utilizes iOS 7's Silent Push Notifications to wake the app in background on request. As I would do in -applicationDidEnterBackground: I initiated a background task in…
1
vote
2 answers

UIApplicationState active in background on iOS 7

I setup a background task with beginBackgroundTaskWithExpirationHandler:^{ } and even after ending the task using if ([[UIDevice currentDevice] isMultitaskingSupported]) { [[UIApplication sharedApplication]…
Deepak Sharma
  • 5,577
  • 7
  • 55
  • 131
0
votes
1 answer

Scripting for bash screen

I have processes that I background with screen. I'm trying to write a script that attaches to a terminal, executes a couple commands, then detaches. The problem is that when I attach to a terminal, screen directs control to the user. How do I…
David Berger
  • 12,385
  • 6
  • 38
  • 51
0
votes
2 answers

Why do I see diminishing returns on speed of backgrounding processes in Bash?

I'm trying to figure out why I'm seeing diminishing speed returns when backgrounding lots of processes in a Bash script. Something like: function lolecho() { echo "lol" &> /dev/null } c=0 while true; do for i in $(seq 1 1000); do …
Locane
  • 2,886
  • 2
  • 24
  • 35
0
votes
1 answer

Xamarin Message Center Multiple Of The Same Message Different Results

I'm making a timer app, so backgrounding is super important. The way I am doing it is through this method outlined in this link. https://robgibbens.com/backgrounding-with-xamarin-forms/ Basically a loop of Ticked messages and updating the…
0
votes
1 answer

Submitting data from Xamarin iOS when backgrounded

I have a weird problem in our current Xamarin project. As the app sends a larger chunk of data to the server, to protect it when app gets backgrounded, we're starting a long-running task (using the UIApplication.SharedApplication.BeginBackgroundTask…
Jonas Rembratt
  • 1,550
  • 3
  • 17
  • 39
0
votes
1 answer

Store (or send) data from Bluetooth device when app is in background

I'm developing an Android app that reads data from a Bluetooth device and saves it to disk (and perhaps send some data to a server). The Bluetooth device is a wearable with a heart rate sensor and a bunch of other sensors. It sends data to the…
Simon Corcos
  • 962
  • 14
  • 31
0
votes
0 answers

How does Google Maps know my position without using a foreground service?

I've been developing an app that gathers data from a wearable device (connected by Bluetooth). I'd like that data to be stored even when the app's main activity gets destroyed by the Android framework. After some research, I noticed that I had to…
Simon Corcos
  • 962
  • 14
  • 31
0
votes
2 answers

Xamarin - IOS - CLLocationManager: get location updates when iphone is locked or sleeping

i am trying to find this information but so far i am unsuccessful. I know that the CLLocationManager has background capabilities. It is pretty well documented. I would like to know if the CLLocationManager is configured properly for backgrounding,…
0
votes
0 answers

Xamarin - IOS: sending a web request every N minutes even when the phone is locked or sleeping

i have been looking unsuccessfully on trying to effectively schedule a task on IOS which needs to run every N minutes. Typically in Android, you can achieve this my using the AlarmManager and the setAlarmClock method which will be called even if the…
0
votes
1 answer

My iPhone app crashes after opening it from background and selecting Tab atIndex:0

I really can't figure this out. When I click a link to open Safari from within my app, browse through the webpage, then return to my app, I can open and browse two tabBarItems in my UITabBar. But, when I try to select the one atIndex: 0, I get an…