HTTP Request as background task with local notifications in iOS
NickName:parek Ask DateTime:2013-03-26T00:33:14

HTTP Request as background task with local notifications in iOS

If you aren't that into Android, there's something called a "background-service" for the applications in that OS. Which basically gives the developer a opportunity to make some background tasks without forcing the application to be in foreground.

So are there something like this in iOS? (Version 5 and newer) What I basically want to do is to call a API and fetch some JSON data every minute, then parse the result and then present a local notification banner to the user depending on the result that were fetched from the HTTP request. I hardly believe that this shouldn't be possible in iOS, but I haven't found anything like this yet.

  1. Call the API once every minute and fetch some JSON data.
  2. Parse the JSON data into and add some logic to handle the data.
  3. If a local notification should be presented or not, depends on the result from the request.

Copyright Notice:Content Author:「parek」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/15620009/http-request-as-background-task-with-local-notifications-in-ios

More about “HTTP Request as background task with local notifications in iOS” related questions

HTTP Request as background task with local notifications in iOS

If you aren't that into Android, there's something called a "background-service" for the applications in that OS. Which basically gives the developer a opportunity to make some background tasks wit...

Show Detail

local notifications ios 11 in background

I prepared iOS app in cordova, I used original Cordova Plugin for Local Notifications. I'm scheduling about 90 local notifications in notification center. It's working on iOS 10, but on iOS 11 not ...

Show Detail

Scheduled background task and local notifications in iOS Swift

What is the approach to be taken to make an app pull some data from the internet (ie. the ESPN API) in the background at a scheduled time every day, then to have the app display a notification rega...

Show Detail

Scheduling local notifications from background fetch in swift / iOS

In my app I need a background-fetch task that queries a server and notifies the user with a local notification if there's any new data. I can't seem to get the app to push the notifications when it...

Show Detail

Receive iOS notification in background :: local notifications

We are working on a iOS application which is like the native calendar application. The application syncs the data from the native calendar database. It also triggers local notifications for each ca...

Show Detail

Local Notifications with iOS 8

Local notification are working well in foreground. but I need to perform some background work when a notification banner displays. It is working well when I tap on the banner when local notificati...

Show Detail

Xamarin iOS Local Notifications not working

I've walked through the Xamarin walkthrough on iOS local notifications: http://developer.xamarin.com/guides/cross-platform/application_fundamentals/notifications/ios/

Show Detail

iOS Local Notifications with an API call

I am trying to create a local notification with the following requirements: The user sets the days of the week for the notification The user selects the time of day for the notification The messag...

Show Detail

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 t...

Show Detail

iOS periodic background work with notifications and rescheduling

I am trying to implement one thing in iOS app, but I have no idea where to start with it and what to use to achieve my desired goal. Here is what I am looking to do: Every day at some particular ti...

Show Detail