Closed alexey-kuznetsov closed 6 months ago
Does it mean that I can define different callbacks for headless and usual tasks?
Yes.
Is it ok, that we define configuration options for headless task in App.js file that is not loaded in headless context?
What do you mean by "options for headless task"?
@christocracy I mean configuration options such as minimumFetchInterval and other.
You MUST call .configure and provide the documented Config. If you don't provide minimumFetchInterval
a default of 15 is used.
Your Environment
Do I understand correctly, that if I need to run headless tasks, I need both:
BackgroundFetch.registerHeadlessTask
inindex.js
andBackgroundFetch.configure
inApp.js
? If yes, I have two questions:App.js
file that is not loaded in headless context?Sorry to bother you and have a nice day!