I'm also experiencing this problem on my mac catalyst app. This problem didn't happen before.... it started to happen about 3-4 months ago.
Interestingly, it happens to some of my views but I still cannot figure out what causes it.
Post
Replies
Boosts
Views
Activity
I have a similar problem on real devices. When I edit complications on Apple Watch, it works fine. I can see my widget preview when selecting what complication I want to add to watch face.
But, in the watch app on iPhone, the complication preview is blank on My Faces. But when I tap into individual face, I can see my widget complications. However, the information on my widget complication is wrong. It's supposed to be information from my snapshot but it's not.
Very buggy indeed.
I ran into this problem as well. Here is what I found that helps me fix this issue.
Make you your iphone and apple watch are unlocked
Connect your iphone to your Mac
Open Xcode
It is important that Xcode is not opened before (1) and (2). This is just from me experience, I have no other explanations....
Hope it might help.
I have the same problem. Before this happens, The review popped up is kinda annoying when in development. In recent days, I do not see the pop up and thought my code is wrong. Yes, the review request was working fine before, but it doesn't work recently. I think it is Ventura-specific issue as well.
Any updates on this? Using Xcode 14.2 but problem is still the same. No print out from widget extension on iOS 16.1+ Need to use iOS16.0 for debugging.
This might not be related to your post but I would like reply here for reference as well. I think iOS16.1 also blocks access to calendar database as well.
My widget app displays info from calendar and it stops working correctly since iOS16.1. It happens when the widget try to refresh the timeline (thus need to access calendar database). If I refresh the widget from within my app, the widget can access calendar database correctly.
I have also found a post on Reddit regarding this issue - https://www.reddit.com/r/iOSBeta/comments/xgship/ios_161_b1_3rd_party_calendar_widgets_not_working/
Hope Apple will fix this soon.
Well... I figured it out. In Settings>Face ID & Passcode. There is a toggle for "Lock Screen Widgets". This has to be turned off in order for widgets on lock screen and widgets in Today View to be redacted in Lock state. And once this toggle is turned off, .privacySensitive logic is working correctly. I have no idea when this was turned off. I don't think I turned it off but maybe I did.
Curious what is the default option for this toggle...
Hello,
Sorry for such a late reply...
Attached image is Apple's calendar widget when iPhone is still in Lock state. (Swipe right) It shows everything. Every widgets (calendar, reminder, email) on my iphone show information even when the phone is still locked. This includes my app as well. So I guess the problem is not with my app.
However, since you said your iphone works correctly maybe it is a problem with my phone then. Thank you.
I have the same problem. I believe this is iOS16 bug as Apple calendar app still not get redacted...
Forgot to add this.... I ran the exact same code on macOS and no warning at all. On Mac there is no swipe down. So the only option is clicking dismiss button on a sheet. And after clicking the dismiss, no warning. Seems to be there is a bug in iOS.
Same. I encountered the same problem. Swiping down on sheets work fine, click on a button give purple warning.
Ok. I figured it out. This might be helpful to others.
Step 1 Add this to AppDelegate
class AppDelegate: NSObject, UIApplicationDelegate {
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
let configuration = UISceneConfiguration(name: nil, sessionRole: connectingSceneSession.role)
if connectingSceneSession.role == .windowApplication {
configuration.delegateClass = SceneDelegate.self
}
return configuration
}
}
Step 2 Create SceneDelegate
class SceneDelegate: NSObject, ObservableObject, UIWindowSceneDelegate {
var window: UIWindow?
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let windowScene = scene as? UIWindowScene else { return }
self.window = windowScene.keyWindow
}
}
Step 3. Then call it like this....
@EnvironmentObject var sceneDelegate: SceneDelegate
.
.
.
.
if let myWindow = sceneDelegate.window {
print(myWindow.description)
guard let scene = myWindow.windowScene else { return }
let options = UIWindowSceneDestructionRequestOptions()
options.windowDismissalAnimation = .commit
UIApplication.shared.requestSceneSessionDestruction(scene.session, options: options, errorHandler: { error in
// TODO: - Handle error
print("Error")
})
}
Hello, have you found a way to fix this? I have a similar situation. My widgets failed to load every time I turn on MacBook. I have to wait about 30 seconds for the widget to load.
After the approval, does 15% applies to sales happened prior to approval?
I published my app without enrollment in this program. In my first few sales I see 15% cut so I thought I'm automatically enrolled. But after few weeks I see a cut more that 15%. Approx 20-30%. Then I realize maybe I should enroll in the program myself. So then I enrolled few days ago.
Thank you
If I may, I have similar situations that would like to ask. I want to be able to execute some codes from background task whenever there are changes in Eventstore (calendar/reminder). I need to update data in my app (and my widget) when this change happen. How can I do this? I can't figure out how to listen to notification from Eventstore in the background.
Thank you very much,
Boon