Post

Replies

Boosts

Views

Activity

Reply to StoreKit's manageSubscriptionsSheet view modifier not loading
Similar issue here: "We found that your in-app purchase products exhibited one or more bugs which create a poor user experience. Specifically, an error message displayed when we clicked on the 'Mein Abo' button." The button is simply setting showManageSubscriptionsSheet to true... .manageSubscriptionsSheet(isPresented: $showManageSubscriptionsSheet) Feedback: FB19601228 (StoreKit: manageSubscriptionSheet showing error during app review)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’25
Reply to Unable to Authenticate with App Store Server API in Production (401 Error)
I see the same issue with code based on the Swift App Store Server Library sample - works using sandbox, fails with errorCode 401 using production: import AppStoreServerLibrary let issuerId = "99b16628-15e4-4668-972b-eeff55eeff55" let keyId = "ABCDEFGHIJ" let bundleId = "com.example" let encodedKey = try! String(contentsOfFile: "/path/to/key/SubscriptionKey_ABCDEFGHIJ.p8") let environment = AppStoreEnvironment.sandbox // try! used for example purposes only let client = try! AppStoreServerAPIClient(signingKey: encodedKey, keyId: keyId, issuerId: issuerId, bundleId: bundleId, environment: environment) let response = await client.requestTestNotification() switch response { case .success(let response): print(response.testNotificationToken) case .failure(let errorCode, let rawApiError, let apiError, let errorMessage, let causedBy): print(errorCode) print(rawApiError) print(apiError) print(errorMessage) print(causedBy) }
Topic: App & System Services SubTopic: StoreKit Tags:
Aug ’25
Reply to App Shortcuts Preview: No Matching Intent?
Thanks for looking into this. I do have AppShortcuts.xcstrings in my project already (project default language is English, localization for German). The phrases do work in the simulator and on device in both languages, but I still get "No Matching Intent" in the latest Xcode Version 16.2 (16C5032a) when trying to use App Shortcuts Preview. I do have a localized app name (which seems to cause an issue in SiriTipView), so maybe this is related?
Dec ’24
Reply to App Shortcuts: Invalid parameter type. AppEntity and AppEnum are the only allowed types...
@darkpaw the following code is giving me the above error: struct GetIntent: ForegroundContinuableIntent { ... @Parameter var date: Date? ... } ... class MyShortcuts: AppShortcutsProvider { static var appShortcuts: [AppShortcut] { AppShortcut( intent: GetIntent(), phrases: [ "Get \(.applicationName) for \(.date)" ], shortTitle: "Get", systemImageName: "calendar") } }
Topic: UI Frameworks SubTopic: General Tags:
Dec ’24
Reply to SiriTipView does not localize applicationName in phrase?
Hi @philippeboudreau - weird, for me the phrase is actually localized but SiriTipView inserts the non-localized app name. This results in a phrase which won't work. Invoking the localized phrase with the localized app name works with Siri. You wrote AppShortcuts.strings - I am using the new AppShortcuts.xcstrings. Maybe this matters?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’24
Reply to WidgetCenter.shared.reloadAllTimelines() only works when app is in the foreground
Same problem on iOS 18.0.1 and Xcode 16... FB15508274 My timeline covers 10 days, but if I get new data in my background task which runs overnight, I'd like to reload the timeline. I was able to verify that code before and after reloadAllTimelines() successfully executes in the background and all my data is updated, but widgets timelines are not ( I share a subset of my data with the Widgets using an App Group and UserDefaults). Starting the background task in the debugger always works and updates both data and widgets. Has anybody experimented with shorter timelines, and/or TimelineReloadPolicy.after(), or found any other workarounds yet?
Topic: App & System Services SubTopic: General Tags:
Oct ’24
Reply to How do you request a review in a volumetric app?
Same thing happens with \.requestReview. I've tried using \.openWindow to open a non-volumetric window. That kind of works. However, dismissing the window immediately crashes, dismissing the window later also closes the review prompt, and there seems to be no way to sense if the user has dismissed the review prompt. So does not seem to be a good workaround. Filed FB15163571 (reviewRequest crashes with volumetric windows)
Topic: App & System Services SubTopic: StoreKit Tags:
Sep ’24
Reply to No ObservableObject of type AuthViewModel found, but only on Mac
I had a very similar odd issue with my app failing only in macOS with compile time error in Xcode 15.4: Thread 1: Fatal error: No Observable object of type MyClass found. A View.environmentObject(_:) for MyClass may be missing as an ancestor of this view. It seems that like you, I had to reinject the object in the view hierarchy - apparently because the view in fullScreenCover would otherwise not inherit the view when running on macOS var body: some View { TabView { ... } .fullScreenCover(isPresented: $shouldShowMyView) { MyView() .environment(myClassInstance) } } Your post helped me resolve the issue - thank you! FB13851806 (.fullScreenCover closure content does not inherit environement)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’24