Post

Replies

Boosts

Views

Activity

Reply to Use of BLE after app clip invocation
@documentationengineer by background, does this mean that the app needs to be open, or does it mean that bluetooth connectivity needs to be done on a main thread (as opposed to a background thread)...I am getting crashes when trying to use bluetooth with app clips and I don't know why, a ticket has been submitted with crash logs to feedback assistant, but according to my googling it is a app clip bug due to the nature of the crash.
Topic: App & System Services SubTopic: General Tags:
Mar ’23
Reply to Update SwiftUI view with data received from WatchConnectivity
@Jim Dovey, is there a way to call setNeedsBodyUpdate if you are using a single class as WCSessionDelegate for both iOS and watchOS? I have my session in a WatchSessionManager class, and use a environment object to update the view of my watch, but it wasn't updating. So, I tried to call HostingController().setNeedsBodyUpdate() and i got a EXCBADACCESS crash...code is below, is there a "right" was to do the updating from another class? 				DispatchQueue.main.async { 						#if os(iOS) 						let _ = WatchDataDistribution().messageReceivedByPhone(message: message) 						#elseif os(watchOS) 						let _ = WatchDataDistribution().messageReceivedByWatch(message: message) 						HostingController().setNeedsBodyUpdate() 						#endif 				} 		}
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’20