Post

Replies

Boosts

Views

Activity

WigetKit does not hide sensitive information on lock screen when locked
Hi there, We've built a lock screen widget for our app, which displays sensitive information which we would love to hide when the device is locked. The widget contains a VStack with in there a Text with the subject name and another Text with the actual value of the subject. The last Text component with the value should be redacted. During development, we've tried already some things like fully hiding the content on locked (setting Data protection to "Complete protection" on the App ID), but that was not really the result we were looking for. We also tried to set .redacted(reason: .privacy) on the Text component, but that does not result in masking the value when locked. Same goes for setting the component with privacySensitive(). What can I do to make this behaviour work as expected? The view: VStack(alignment: .leading) { Text("Name of Subject") .font(.system(size: 15.0)) Text(entry.dataIsOutdated ? "-.--" : entry.valueAsString!) .font(.system(size: 28.0)) .fontWeight(.bold) .minimumScaleFactor(0.5) .redacted(reason: .privacy) } .frame(maxWidth: .infinity, alignment: .leading) .widgetURL(URL(string: "app-scheme://deeplink")) Thanks for helping!
2
1
591
Nov ’23