I'm writing my first watchOS app so I am sure my problems are self-inflicted!
I am trying to fetch from a url and then JSON decode and display the results.
The app runs correctly on the watchOS simulator but not on my real series 5.
It launches correctly and displays a list of target files to select from. The list is hard-coded in an array so no network activity at this stage.
Tapping an item is supposed to customise the url string, fetch the data and then decode it and display on a detail view.
Works perfectly on the simulator.
On the real device it displays the list correctly. After tapping an item it displays the detail view but all the fields which should be populated from the JSON decode are blank.
I've set the ATS for the target domain so I don't think that is a problem.
My watch has a data plan so I'm assuming that enables data download?
Is there anything different either when trying to fetch data using urlsession.shared.data on the watch or when trying to JSON decode the received data that might cause the problem I'm having?
At this point I don't know if my problem is in the fetch or the decode - can anyone give me a clue how to check the fetch worked or failed because that would then narrow the scope a bit.
My thanks in advance for any assistance - sincerely appreciated!