Questions tagged [uibackgroundtask]
69 questions
3
votes
4 answers
startUpdatingLocation of LocationManager through silent push notification
I am creating app that needs to wake up in background at particular time .
I have tried :
UILocalNotification : But i Don't want to use UILocalNotification because it needs user interaction to tap on notification and than only app will wake up and…
user2265763
2
votes
1 answer
Swift Background Execution
I have a step function on AWS triggered by an HTTP Post request. The function can take a few seconds to complete. I'd like for execution to continue if the user puts the app into the background, and to correctly navigate to the next screen once the…

Eric Jubber
- 131
- 1
- 9
2
votes
0 answers
Unknown process name- vImageConvert_AnyToAny - failed on beginBackgroundTask
Hey So i am resizing my images on a background thread that keeps executing after the app entered the background with beginBackgroundTask along with some other code like so:
func resizeImage(image: UIImage, newWidth: CGFloat) -> UIImage {
let scale…

mufumade
- 400
- 4
- 16
2
votes
2 answers
MPMusicPlayerController.systemMusicPlayer setQueue difficulties
I am having difficulty with my music app. The idea is to tap a button and play more songs from the artist that is currently playing. When I am IN the app and I hit next song it works fine. However if I let the song end naturally the app would play a…

RubberDucky4444
- 2,330
- 5
- 38
- 70
2
votes
1 answer
Frequent time interval background fetch made
I have developed two different applications
App1 - With Healthkit enabled.
App2 - ionic application
App1 task : Read data from healthkit which is store in the server.
App2 task : Retrieve the stored data from server and display.
I started App2…

Senthilkumar
- 2,471
- 4
- 30
- 50
2
votes
1 answer
iOS CPU_FATAL 0% in background
I'm working on background audio playing for my app. But some of users warned me about one strange bug. After 1 hour or more playing in background the app is killed by iOS and you need to launch it again.
Mostly it happens with bad internet…

Igor Savelev
- 23
- 2
2
votes
1 answer
iOS App running background task time
So I'm performing a background task in my app, which is started like this:
private func someFunc()
{
backgroundTask = UIApplication.sharedApplication().beginBackgroundTaskWithExpirationHandler({
// Present a local Notification
})
…

Atomix
- 13,427
- 9
- 38
- 46
2
votes
2 answers
Keep just one background task
I'm developing an application that uses a background task to keep tracking of the user position every 20 seconds. All is fine, except that when I enter the application in background, a new background tasks is created, so that I can have in final…

androniennn
- 3,117
- 11
- 50
- 107
2
votes
1 answer
Sending location coordinates to server in background from iOS
I am developing an app which needs to send user location to server. I have to update user location every second and send it to server from background.
I am able to fetch the location co ordinates in background, but how can I send this to sever in…
user1842872
1
vote
0 answers
App performing continuous background activity - even during terminated state
I just noticed that my app's background activity is sky-rocketing after few mins of usage.
Location permission disabled.
App's background refresh disabled from the iOS Settings app.
Push notifications enabled.
It keeps on getting launched/running…

Adithya Reddy
- 11
- 1
- 4
1
vote
1 answer
iOS Background Task does not remain alive if launched when phone is locked (screen off)
I have an iOS application which interacts with BLE devices. The Bluetooth LE accessories background mode is active so that the application is able to connect and interact with BLE devices even when it's put in the background.
When a BLE device is…

Andrea Gorrieri
- 1,704
- 2
- 22
- 36
1
vote
0 answers
Background task is executed only when the iPhone is connected to a system(any OS: Windows, Mac or Ubuntu) but not otherwise
The app is in background and it receives a callback upon disconnection with the BLE device, after which the app has to wait for sometime(1minute) and then execute some piece of code. The app behaves as expected even when in the background and is…

Megha
- 41
- 5
1
vote
7 answers
UIBackgroundTaskIdentifier running NSTimer but not updating UILabel - iOS
In my app, I have NSTimer which updates UILabel every second. I've added UIBackgroundTaskIdentifier before NSTimer to let it run in background.
__block UIBackgroundTaskIdentifier bgTask = [[UIApplication sharedApplication]…

iAkshay
- 1,143
- 1
- 13
- 35
1
vote
1 answer
Perform task in iOS app when app is in background or in terminated (killed) state
I'm working on a iOS application in which I need to perform a task in the app everyday at 8am. I need to perform that task in all the below three conditions of app which are,
If app is running in the foreground.
If app is running in the…

Rahul Bansal
- 1,382
- 15
- 22
1
vote
1 answer
BLE in Background Mode: didUpdateValueForCharacteristic not called
I've a custom class (let's say, MyBLE) that served as a CoreBluetooth wrapper (similar to LGBluetooth, I guess). It handles communications between my BLE accessory and the iOS device:
MyBLE.h
@interface MyBLE : NSObject
@property (nonatomic,…

Cai
- 3,609
- 2
- 19
- 39