From 8ef847adc848a88487b238e55ebd203e0d894969 Mon Sep 17 00:00:00 2001 From: Allan Ritchie Date: Sat, 29 Sep 2018 20:45:19 -0400 Subject: [PATCH] last of notes --- faq.md | 5 +++++ platform_android.md | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/faq.md b/faq.md index 2135b82..d573571 100644 --- a/faq.md +++ b/faq.md @@ -1,5 +1,9 @@ ## FAQ +Q. When should I schedule my defined jobs? Should I do everytime I start the app. + +> When your app starts (Xamarin Forms App.OnStart is a good place). It is a good practice to schedule every start. The framework will only update jobs if one already exists. + Q. How long does the background sync let me have on iOS > 30 seconds and not a penny more @@ -24,6 +28,7 @@ Q. Is there job priorization? > Not yet - debating this one for the future + Q. Why can't I set the next runtime > From a true runtime perspective you can't, however, inside you job you can set add/update the job parameters or check the last runtime on the job info to see if you want to run. Example below: diff --git a/platform_android.md b/platform_android.md index 5f46db7..c81a338 100644 --- a/platform_android.md +++ b/platform_android.md @@ -18,4 +18,5 @@ Plugin.Jobs.CrossJobs.Init(this, savedInstanceState); // activity ### NOTES -* If Doze is enabled, the reschedule period is not guaranteed to be an average of 10 mins. It may be much longer. \ No newline at end of file +* If Doze is enabled, the reschedule period is not guaranteed to be an average of 10 mins. It may be much longer. +* IF YOU ARE NOT SCHEDULING YOUR JOBS ON EVERY START - If you application force quits, Android will not restart the job scheduler. For this, there is CrossJobs.EnsureJobServiceStarted \ No newline at end of file