Questions tagged [background-task]
677 questions
-1
votes
1 answer
iOS Application request faild when come back from background
iOS Application request faild when come back from background,
I use AFNetworking in my Application,a lot of user use my app enter background but not kill app when they want to leave my app,when they come back from background after a long time,the…

yu cao
- 1
- 1
-1
votes
1 answer
Refreshing an activity every 15 minutes in background and send a notification even if the application is closed
I'm working on an app that take data from a web service and show them in various card view inside a recycler view.
I need to refresh the activity that show the data and send a notification (like "System ok" or "Something went wrong") to the user…

Eddi
- 26
- 5
-1
votes
1 answer
How do I use AsyncTask' s onPostExecute method to uptate a variable in Android
I'm trying to update a variable after running a background task with AsyncTask to the result of the background task. The variable updates, but not on time apparently. The toast I use to display the server response displays an empty toast at first…

meshachviktor
- 45
- 1
- 6
-1
votes
1 answer
Can't close UWP Backgroundtasks after application terminated
I am trying to add a BT server to my app, and using the "BluetoothRfcommChat" sample project, ("Scenario3_BgChatServer" to be exact - with background task).
It seems that if I register the background task and terminate the app without unregistering…

Zohar
- 11
- 3
-1
votes
1 answer
Java Maven project create background task
I am new to creating background tasks in Java. I have a situation in which I need to create a background task that runs every 10 mins to fetch new documents from the Google drive. I have created a Google App Engine project using maven on which I am…

Furqan Ahmed
- 159
- 1
- 3
- 17
-1
votes
1 answer
How to handle the background activation event coming from a toast button click in UWP
I am trying to have a time triggered background task that displays a toast with button. "Are you ready to do xyx?" [Yes] [No]. Clicking Yes will then go to a web page. No will close the toast until the next time period.
In Windows 10 universal…

Jack
- 11
- 5
-1
votes
1 answer
Disabling background task
My app handles raw push notifications, but it processes them differently when it's running on foreground or as a background task.
Right now when the application starts I check if there's a bg task registered and if it is then I unregistered the task…

Maksim Vi.
- 9,107
- 12
- 59
- 85
-1
votes
1 answer
WP8.1 C# Windows Phone 8.1 Background Task WriteableBitmap Thread Error
I am trying to update the band Me Tile image from a background task and i get the following error at WriteableBitmap:
System.Exception: The application called an interface that was marshalled for a different thread. (Exception from HRESULT:…

cosgreen
- 3
- 2
-1
votes
1 answer
BackgroundTransfer inside BackgroundTask
In my application i need to synchonize some data on a TimeTriggered intervall. Now i have built a BackgroundTask with TimeTrigger, inside this task i im running a BackgroundTransfer operation. This works, but i havesome questions about that.
Is…

andy12
- 3
- 4
-1
votes
2 answers
background updates in app
I create news app that parses social network and get information from it. I saw in Apple documentation in Background Execution and Multitasking that Long-Running Background Tasks can be applied by
Apps that need to download and process new content…

user3608465
- 23
- 5
-2
votes
1 answer
How to make long running Task not disturbed
Having long running Task, something like this
Task.Factory.StartNew(() =>
{
var step = 0;
while (true)
{
Task.Delay(100).Wait();
Console.WriteLine(step);
step++;
if (step > MaxStep)
…

Rezo Khurtsilava
- 21
- 2
-2
votes
1 answer
How to run countdown timer functionality in the background even the app is killed in flutter?
I am new in flutter. I am making a countdown timer app in flutter. The next thing I need to know that "How I can run my selected Countdown time in the background?" I had done this functionality in native android Kotlin, but I need to get this task…

danish Khawaja
- 13
- 3
-2
votes
1 answer
How do I run a function at a specific time - even when the app is closed?
I am creating an app that requires a function to run at a specific time. The function will return a value which will be stored in a database. I have tried using Background Tasks but am unsure if this will do the job. This function needs to run when…

mbby
- 397
- 1
- 11
-2
votes
1 answer
Periodically long running background task
I would like to perform the following tasks on every 30 minutes interval -
MNC, MCC, LAC & Cell ID
Display it to user &
Send these information to a remote server via HTTP request.
During this time, the app may/may not be in front.
My question…

s.k.paul
- 7,099
- 28
- 93
- 168
-2
votes
1 answer
Track iOS Device Motion Updates in Background for more than 10 minutes
I have an app which checks the gravity of the iPhone every second in the background. When I run this code while connected to Xcode, the program runs for more than 30 minutes in the background. However, when it is not connected to Xcode, it stop…

Maanit
- 316
- 2
- 4
- 14