Questions tagged [uibackgroundtask]

69 questions
0
votes
3 answers

Delete data when app is killed in the background.

I have an app where I am saving data but when the app is killed in the background I have to delete all the saved data. I tried using this method: - (void)applicationWillTerminate:(UIApplication *)application But its not working. Can someone please…
0
votes
2 answers

XMPPFramework does not send keep alive in background even with enableBackgroundingOnSocket set to TRUE

I think the title is illustrating enough. I want XMPPFramework to work ( like a service ) in background and receive messages even when app is not in active state. I have set xmppStream.enableBackgroundingOnSocket = YES; But no progress here. The app…
Sepehrom
  • 1,335
  • 2
  • 16
  • 33
0
votes
4 answers

change android UI according to a background thread results

I'm developing an android app that requires to make UI changes according to a background thread processing results, I tried the following code at first: Thread run_time = new Thread (){ public void run(){ …
0
votes
1 answer

Automatic UITableView using a NSFetchedResultsController while being in the background

I am trying to nail down a bug which has crashed my App for ages. It took me however a long time to narrow down what the cause is, and I think I (almost) have it. If the App goes to the background, it runs a background task to cleanup the database,…
0
votes
1 answer

send notification like push notification without APNS server in ios,

I want to send push notification without any APNS server and device token,like android there is NO local and push notifications but they can send device to device with out google permissions.
-1
votes
1 answer

iOS: background process and singleton

In my app I should populate a core data DB and I want do it also in background - (void)applicationDidEnterBackground:(UIApplication *)application { if ([[UIDevice currentDevice] respondsToSelector:@selector(isMultitaskingSupported)]) { //Check…
cyclingIsBetter
  • 17,447
  • 50
  • 156
  • 241
-2
votes
1 answer

App is crashing on only iOS 13 in the background mode

The app is crashing only on iOS 13 and when I saw the detailed report, Reports are mentioning the app was in the background when it was crashed. No reference of the line of code mentioned in the crash logs where I can find the line which is causing…
-2
votes
2 answers

Can't endBackgroundTask: no background task exists with identifier *, or it may have already been ended

My app monitors user location updates (not necessarily significant location change) with: someLocationManager = [[CLLocationManager alloc] init]; [someLocationManager setDelegate:self]; [someLocationManager startUpdatingLocation]; When app (in…
mllm
  • 17,068
  • 15
  • 53
  • 64
-3
votes
2 answers

calling a method continuously even in background ios

Is there a way to call a method continuously as long as the app is running in background or foreground.This method is used to check for the time and trigger notification according to the change in time. here is the method -(void)checkDate { …
vishnuvarthan
  • 492
  • 1
  • 6
  • 23
1 2 3 4
5