Follow up on the above that I tried option 2. This worked in the sense that the subscription was received every minute according to the timer. This can be see in the Date output below.
However, this did not cause the dataTaskPublisher to re-run. So the bytes shown are from the original request that ran once only.
(2020-12-29 15:05:30 +0000, 61631 bytes) combined
(2020-12-29 15:05:33 +0000, 61631 bytes) combined
(2020-12-29 15:05:36 +0000, 61631 bytes) combined
(2020-12-29 15:05:39 +0000, 61631 bytes) combined
(2020-12-29 15:05:42 +0000, 61631 bytes) combined
Topic:
Programming Languages
SubTopic:
Swift
Tags: