I was wondering what the best practice for calling a function using NSUserdefaults is?
So basically I have a function in my main data model in my app that parses some data from an API.
I was able to pass the return value of this function through NSUserdefaults to transfer the data from my main app to my WatchKit app. However it only passes data when the App has been opened. How best can I call the function, to parse data from the API using Watchkit on it's own? (Like a background app open) I'm a bit confused.
Kind Regards,
Jack