I am trying to write a barrel but I want to know if it can be called from a background process.
As such I'm guessing I need to put the (:background) annotation in the file, right?
I am trying to write a barrel but I want to know if it can be called from a background process.
As such I'm guessing I need to put the (:background) annotation in the file, right?
I gave barrels that are the entire background service which also contain code that's used by the main app, so yes.
But you may want to consider that barrels have an additional overhead if memory in your background service is tight.
Hi, my question is if I write a class with (:background) annotation, how to cope with onBackgroundData, is it possible to include the method in a barrel
Yes I tried it and it works.
onBackgroundData has got to be in your AppBase class.