Running the app at the background forever

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shyam100pins
    New Member
    • Jul 2016
    • 1

    Running the app at the background forever

    We are using cordova for the development of mobile apps.

    We have developed an app for iPhone.
    Our business requirement is to run the app at the background and listen to our server for the updates.
    We need to get the list of online users. This helps us in getting the list of online users and also in listenning to the server.

    Problem:
    iOS is killing the app after few minutes. I need the app to run at the background for ever.
    This is a proven concept and used by lots of apps on apple store.

    Please suggest me how to achieve this.
    If we use Background audio then the desired result is achieved by getting rejected by the apple store.

    Please suggest us a solution.

    NOTE: We dont want to update our database by repeated poking to the database server and updating the table.
  • Brilstern
    New Member
    • Dec 2011
    • 208

    #2
    The Apple-approved alternatives are listed in https://developer.apple.com/library/...Execution.html

    Looking at "Table 3-1 Background modes for apps", the two relevant alternatives for repeatedly getting info from a server are "Background fetch" or "remote-notification".

    "remote-notification" is push notifications, which you say you don't want to use.

    Therefore, "Background fetch" is the relevant choice.

    Comment

    Working...