Background data refresh

4 posts, 0 answers
  1. Anid
    Anid avatar
    2 posts
    Member since:
    Nov 2013

    Posted 04 Apr 2014 Link to this post

    Is there a way to schedule a task to occur in the future, regardless of the state of the app? I'd like to be able to schedule a background data refresh, every 12 hours for example, which would take place whether or not the app is running or not. I'm targeting iOS and Android. I've seen power management plugins out there but I'm not sure that is what I'd need.
  2. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 09 Apr 2014 Link to this post

    Hi Anid,

    I really doubt this is doable since the code you have to execute in order to refresh your data will be in the app and you can't execute it without starting the app.
    Thanks.

    Regards,
    Zdravko
    Telerik
     

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

     
  3. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 09 Apr 2014 Link to this post

    Hello Anid,

    On the other hand you can make your own service for Android and iOS, integrate it via plugin to your app and start it at the very first run of your app to help you complete your goal. For that purpose you will need Java and Objective C programming knowledge respectively for Android and iOS OS.

    Here is a link to the Cordova's documentation where it is described in details how you can make a plugin and another link with a similar inquiry on StackOverflow.

    Regards,
    Zdravko
    Telerik
     

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

     
  4. Anid
    Anid avatar
    2 posts
    Member since:
    Nov 2013

    Posted 09 Apr 2014 in reply to Zdravko Link to this post

    Zdravko, thanks for your response. I had a feeling that a custom plugin would be necessary for something like this, but wanted to be sure. I appreciate your help.
Back to Top