Post

Replies

Boosts

Views

Activity

Reply to API: DeviceCheck, statusCode: 401, message: Unable to verify authorization token
I have received the same error code 401 and it turned out that you need to wait up to 12-24 hours (in my case it was approximately 7 hours) after the creation of the private key until the verification succeeded with 200. Beyond this, you need to create a key for DeviceCheck and not for APN as stated by some examples. APN keys didn't work for me!
Topic: App & System Services SubTopic: General Tags:
Jul ’22
Reply to iOS widget previews with different size family
Here is a workaround to resolve Key path value type 'WritableKeyPath<EnvironmentValues, WidgetFamily>' cannot be converted to contextual type 'KeyPath<EnvironmentValues, WidgetFamily>'. Source: https://stackoverflow.com/a/68489369 extension WidgetFamily: EnvironmentKey {     public static var defaultValue: WidgetFamily = .systemMedium } extension EnvironmentValues {   var widgetFamily: WidgetFamily {     get { self[WidgetFamily.self] }     set { self[WidgetFamily.self] = newValue }   } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’22
Reply to API: DeviceCheck, statusCode: 401, message: Unable to verify authorization token
I have received the same error code 401 and it turned out that you need to wait up to 12-24 hours (in my case it was approximately 7 hours) after the creation of the private key until the verification succeeded with 200. Beyond this, you need to create a key for DeviceCheck and not for APN as stated by some examples. APN keys didn't work for me!
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to Use data being cached by AVAssetDownloadTask to play in AVPlayer while it is still being downloaded.
You could use caching player item and combine it with a cache.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’22
Reply to iOS widget previews with different size family
Here is a workaround to resolve Key path value type 'WritableKeyPath<EnvironmentValues, WidgetFamily>' cannot be converted to contextual type 'KeyPath<EnvironmentValues, WidgetFamily>'. Source: https://stackoverflow.com/a/68489369 extension WidgetFamily: EnvironmentKey {     public static var defaultValue: WidgetFamily = .systemMedium } extension EnvironmentValues {   var widgetFamily: WidgetFamily {     get { self[WidgetFamily.self] }     set { self[WidgetFamily.self] = newValue }   } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to Crash in background on iOS 15 EXC_CRASH (SIGKILL)
@edford, I can confirm seeing crash reports with 0x0 exception codes on iOS 15. My guess it is the watchdog killing the app, but I'm not sure. Please see FB9791707.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’21