Post

Replies

Boosts

Views

Activity

Reply to How to use BGAppRefreshTask without server update?
Hey Wayne, Thank you so much for sharing your code as an example. It is written so nicely and I only hope to be able to write like this by myself one day. I have been learning to code for three months now and at this point I am just learning from messing around with the code and reading the docs (which I find hard to understand) so apologies for the dumb questions. I wanted to ask - since you have used Central().fetch2 to get current web data, I thought I might be able to use my isRefreshRequired() from my ViewController() class... something like         let appRefreshOperation =  ViewConroller().isRefreshRequired obviously it gave me errors since it is incorrect, but I am not quite sure what to put here? Should I be making a separate struct that has .isRefreshRequired() as a method and use it that way?
Oct ’20