Post

Replies

Boosts

Views

Activity

Reply to AppStore.requestReview(in:) never presents on iOS 27 Simulator (works on iOS 26)
With respect, this advice goes against Apple's documentation for RequestReviewAction. https://developer.apple.com/documentation/storekit/requestreviewaction says that: When your app calls this method while it’s in development mode, StoreKit always displays the rating and review request view, so you can test the user interface and experience. However, this method has no effect in apps that you distribute for beta testing using TestFlight. As I read iPavan's post, they are not describing behavior in a beta build. They are describing behavior within the iOS Simulator when in development mode. I can verify the behavior iPavan describes. Using Xcode 27 beta 6, if I build and run my app on any device or simulator running iOS 26 or earlier, a call to RequestReviewAction produces the request review dialog. But if I run the same app on any device or simulator running the latest iOS 27 beta, the same call never produces the dialog. This is running development builds, not TestFlight betas. So the behavior of RequestReviewAction appears to have changed in iOS 27 (at least as of the latest beta) in a way that makes it more difficult for developers to "test the user interface and experience"
Topic: UI Frameworks SubTopic: SwiftUI Tags:
2w
Reply to dateSet forecastDaily always returning 404 for past 12 hours has been working for months
Today (12/16/23), I began getting this same 404 error in my code. I also was using code that had been working for the last month or more. I was requesting forecast data for the date range starting at the current time and going until 10 days in the future from the current time. When I switched my code to request forecast data from the beginning of the day until ten days from the beginning of the day, the 404 error went away. So I was experiencing the same error that moscarillo was experiencing, and I was able to fix it by following the advice given by the Apple Frameworks Engineer. fwiw, here is the code that is working for me now:             let startOfToday = Calendar.current.startOfDay(for: Date())             let startDate = Calendar.current.date(byAdding: DateComponents(day: -10), to: startOfToday)!             let endDate = Calendar.current.date(byAdding: DateComponents(day: 10), to: startOfToday)!             let current: CurrentWeather             let futureDaily: Forecast<DayWeather>             let futureHourly: Forecast<HourWeather>             let alerts: [WeatherAlert]?             let historicDaily: any Collection<DayWeather>             let historicHourly: any Collection<HourWeather>             (current,              futureDaily,              futureHourly,              alerts) = try await self.weather(for: location,                                               including: .current,                                               .daily(startDate: startOfToday, endDate: endDate),                                               .hourly(startDate: startOfToday, endDate: endDate),                                               .alerts)
Topic: App & System Services SubTopic: General Tags:
Feb ’23
Reply to AppStore.requestReview(in:) never presents on iOS 27 Simulator (works on iOS 26)
With respect, this advice goes against Apple's documentation for RequestReviewAction. https://developer.apple.com/documentation/storekit/requestreviewaction says that: When your app calls this method while it’s in development mode, StoreKit always displays the rating and review request view, so you can test the user interface and experience. However, this method has no effect in apps that you distribute for beta testing using TestFlight. As I read iPavan's post, they are not describing behavior in a beta build. They are describing behavior within the iOS Simulator when in development mode. I can verify the behavior iPavan describes. Using Xcode 27 beta 6, if I build and run my app on any device or simulator running iOS 26 or earlier, a call to RequestReviewAction produces the request review dialog. But if I run the same app on any device or simulator running the latest iOS 27 beta, the same call never produces the dialog. This is running development builds, not TestFlight betas. So the behavior of RequestReviewAction appears to have changed in iOS 27 (at least as of the latest beta) in a way that makes it more difficult for developers to "test the user interface and experience"
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
2w
Reply to dateSet forecastDaily always returning 404 for past 12 hours has been working for months
Today (12/16/23), I began getting this same 404 error in my code. I also was using code that had been working for the last month or more. I was requesting forecast data for the date range starting at the current time and going until 10 days in the future from the current time. When I switched my code to request forecast data from the beginning of the day until ten days from the beginning of the day, the 404 error went away. So I was experiencing the same error that moscarillo was experiencing, and I was able to fix it by following the advice given by the Apple Frameworks Engineer. fwiw, here is the code that is working for me now:             let startOfToday = Calendar.current.startOfDay(for: Date())             let startDate = Calendar.current.date(byAdding: DateComponents(day: -10), to: startOfToday)!             let endDate = Calendar.current.date(byAdding: DateComponents(day: 10), to: startOfToday)!             let current: CurrentWeather             let futureDaily: Forecast<DayWeather>             let futureHourly: Forecast<HourWeather>             let alerts: [WeatherAlert]?             let historicDaily: any Collection<DayWeather>             let historicHourly: any Collection<HourWeather>             (current,              futureDaily,              futureHourly,              alerts) = try await self.weather(for: location,                                               including: .current,                                               .daily(startDate: startOfToday, endDate: endDate),                                               .hourly(startDate: startOfToday, endDate: endDate),                                               .alerts)
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’23