This is a migrated thread and some comments may be shown as answers.

Background data refresh

3 Answers 50 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Anid
Top achievements
Rank 1
Anid asked on 05 Apr 2014, 12:12 AM
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.

3 Answers, 1 is accepted

Sort by
0
Zdravko
Telerik team
answered on 09 Apr 2014, 01:04 PM
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!

 
0
Zdravko
Telerik team
answered on 09 Apr 2014, 02:13 PM
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!

 
0
Anid
Top achievements
Rank 1
answered on 09 Apr 2014, 06:16 PM
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.
Tags
General Discussion
Asked by
Anid
Top achievements
Rank 1
Answers by
Zdravko
Telerik team
Anid
Top achievements
Rank 1
Share this question
or