-
I have a swiftui app that connects automatically with a View onAppear. That works great. I can subscribe to an event manually just fine. But if I try to subscribe to a topic in the same function that starts the connection, my connection then fails with the following error: "CocoaMQTT(warning): Enable backgrounding socket failed, please check related permissions" Any ideas on how to fix this? Are others able to connect and subscribe to a topic on startup? if so please let me know how you do so. thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
As soon as I wrote this I figured it out. Connect is async and so I needed to take that into account |
Beta Was this translation helpful? Give feedback.
As soon as I wrote this I figured it out. Connect is async and so I needed to take that into account