Questions tagged [uibackgroundtask]
69 questions
0
votes
0 answers
Need NSTimer running or Fire dynamic Local Notification at every certain time interval When Application is in background
As per my scenario i.e. needs to call api, then show local notification, again need to call api.
so each time 3 procedure needs to followed, even if application is active or in background.
I have tried to use NStimer for this but timer stops working…
0
votes
0 answers
UIBackgroundTask throws error `no background task exists`
An AVAudioPlayer is stopped in a background tasks when the app transitions to background:
func stop() {
var backgroundTask: UIBackgroundTaskIdentifier = UIBackgroundTaskInvalid
backgroundTask = UIApplication.shared.beginBackgroundTask() {
…

Manuel
- 14,274
- 6
- 57
- 130
0
votes
3 answers
iOS 9 : beginBackgroundTaskWithExpirationHandler is getting called before timout
i'm working on VOIP call and adding support to iOS < 10.
For incoming VOIP call when app is in background, i'm using UILocalNotification (deprecated in iOS 10).
To make a call 60 secs (or 1 minute) i'm using this code
count = 0;
…

Abhishek Thapliyal
- 3,497
- 6
- 30
- 69
0
votes
1 answer
Location Background Mode is not working on iOS
I am trying to enable background location mode in my application. I have enabled 'Location updates' background mode in my plist file.
The app contains a timer that is updating every 15 seconds.
When the app is navigating to background, I am doing…

Iphone User
- 1,930
- 2
- 17
- 26
0
votes
1 answer
iOS crash on Starting Background Task
I've recently revisited my app which was last built for iOS 8.4 and now updating it to 9.3. It was working fine the first few times I ran it but now crashes on every open, across each simulator with the error:…

Gordon McKee
- 3
- 1
0
votes
1 answer
Excute Scoring Tasks in Game in Background objective-c
I am creating a game in which the user is rewarded points while the app is in the background or not running. If the application is fully closed out, they should still get points. Currently I am doing this using an NSTimer, however I have read…

John55
- 301
- 2
- 11
0
votes
0 answers
background task is not working
I am trying to execute my code whenever my app enters into background. But my code is not working. Here is my following code:
- (void)applicationDidEnterBackground:(UIApplication *)application {
__block UIBackgroundTaskIdentifier…

Nishi Bansal
- 315
- 1
- 5
- 16
0
votes
2 answers
How to upload Big file(video) using AFNetworking while application is in Background mode?
I want's to upload big file(video) from my application while application is in Background mode. I am using AFNetworking Library. Application is running from 3 min but after that it kill all the activity.
Below code i use in…

Bhavesh Patel
- 596
- 4
- 17
0
votes
0 answers
UIBackgroundTaskIdentifier is not working relaunching after its expires
I have a app that fetch some content from server via REST api after every 5 mins in background using the UIBackgroundTaskIdentifier. My problem is that this works fine for 1,2 hours and then after it is expired it never re starts the background…

Mobile Developer iOS Android
- 6,005
- 5
- 34
- 58
0
votes
1 answer
App not suspending after long-running background task completes
Why doesn't my app suspend immediately after my long-running background task completes?
An app running on iOS 8 uses a long-running background task to avoid being suspended when it enters the background. All is well. When the task is complete, the…

Justin
- 20,509
- 6
- 47
- 58
0
votes
1 answer
IOS : Push notification on user defined time duration
My app should get push notification on user defined time duration (like on each Monday 11 AM).
So for that App have to check for new updates on server (on background) on user defined date and time, App might not be running at this time, but it still…

Yajushi
- 1,175
- 2
- 9
- 24
0
votes
1 answer
Newsstand daily update content at background
My app should have auto-download the newsstand content every day but it will only started only when I launch the app normally. I am completely new on using Newsstand app. Have I missed out anything for this?
I have ticked the "Newsstand Download"…

shoujo_sm
- 3,173
- 4
- 37
- 60
0
votes
0 answers
iOS Downloading multiple files in the background
I have read few articles but could not find what I was looking for so here's my query.
I am downloading few files from the server and there is a case where the user locks his screen, in this case the ios device loses its network connectivity and the…

user2538944
- 305
- 4
- 12
0
votes
1 answer
Handling UIBackgroundTask Expiration is stopping my beaconRanging Method
i developed an app which ranges for beacons in the background using ibeacon API. As it uses the core location and bluetooth , so i enabled the Location, Bluetoothconfiguration from the capabilities. So after running my app , ranging happening in…

Madhu
- 869
- 1
- 17
- 37
0
votes
1 answer
Linux task in the background finishes
I have got a Linux task that finishes and prints:
[6]- Done
I have noticed that in the past it would print:
[6]+ Done
Is there any difference between + and -?

Jadiel de Armas
- 8,405
- 7
- 46
- 62