Nope. Still searching for it.
Post
Replies
Boosts
Views
Activity
I fixed it. It seems like I have more than one instance of userDefaults. So I created a singleton for this like this -> static let userSettings = UserSettings().... Thank you for your adviceπ
Same. I use same App Group for both targets. The app on watch works fine, but the widget cannot see updated userDefaults.
Thanks for the insight. Can you tell whether the widgets on watchOS always use the latest data in userDefaults?
In my case, I notice that the widgets doesn't always use the latest data even though the app itself uses the latest data (can confirm that watch app receive latest userDefaults from iPhone). It is like after some times (sometimes in minutes sometimes in hours), the widgets will start using latest data in userDefaults.
Doesn't work either.
One size, but how many of it? Do you have any widgets on Lock Screen?
Hello, Thank you for your solution. I have both main app and widget extension running at the same time now. But for the widget, there is no Print out. (print statement from my code). However, the main app shows print out normally. Any idea how to get the print out from widget extension? Note that the breakpoints work just fine for both main app and widget extension.
Yeah, but what they said we will need to manually start debugging session. But I just cannot do it. It seems like it is debugging but there is no printout.
This solves my problem. Thank you
Does this 72 manual refreshes include when WidgetCenter.shared.reloadAllTimelines() is called within the app? (Or it only includes when timeline is refresh automatically based on refresh policy?) Thank you.
I have experience the same problem. I have tried both iPad and Mac idiom, the text are blurry.
Thank you. I'm novice here.... Could you please give me a sample code of how to implementing this function? I am using SwiftUI and I do not have Scene Delegate. I am not sure where I should put this code.
Thank you
I also experienced this. I had 2 extensions and in one of them I used WidgetBundle. And when I added all of my widgets in iPhone, I found that sometimes not all widgets were reloaded when I called WidgetCenter.shared.reloadAllTimelines().