Posts

Post not yet marked as solved
1 Replies
344 Views
I'm creating a standalone WatchOS app using StoreKit 2. The code I have for making the purchase and checking the subscription status works under iOS 15. On WatchOS 8, after confirming the purchase, the product.subscription.status array is empty. I'm testing using the Xcode sandbox and I can see the purchase transaction there. I've talked with an Apple engineer and they think it may be a bug in WatchOS, but I'm reaching out here to see if anyone else has encountered this issue. Here's a code snippet: guard let product = store.subscriptions.first else { print("No Subscriptions"); return } guard let sub = product.subscription else { print("Not Subscription",product.id); return } let statuses = try await sub.status After the purchase, statuses has a value on iOS 15, but it's empty on WatchOS 8. "store" is my object to deal with StoreKit. Here's some relevant code that populates the store.subscriptions array. class Store: ObservableObject {   @Published private(set) var subscriptions: [Product]   @MainActor   func requestProducts() async {     do { //... keys are my product identifiers       let storeProducts = try await Product.products(for: keys)       for product in storeProducts {         switch product.type { // [snip]         case .autoRenewable:           newSubscriptions.append(product)         } }       subscriptions = sortByPrice(newSubscriptions) } // [snip]   } } I have tested this with Xcode 13.1 and 13.2b2.
Posted
by EdA.
Last updated
.
Post not yet marked as solved
0 Replies
757 Views
I have set up an app to monitor for both geofence (CLCircularRegion) and iBeacon (CLBeaconRegion) monitoring for entry / exit events. Everything works fine for about a day. I get entry / exit events (generate a UNNotificationRequest to show a local notification) just as I would expect. I can run multiple other apps that would presumably force my app out of memory, with an entry / exit event launching the handler that generates the notification. But a day later I stop getting the events, or at least stop getting the notifications. I'm running iOS 13 on an iPhone Xs. Any insights into what might be happening?
Posted
by EdA.
Last updated
.
Post not yet marked as solved
0 Replies
279 Views
I'm working on a proposal for the City of Los Angeles. One of the key metrics is the delivery time for notifications. The service revolves around public safety and alerts on a broad city-wide basis. We will need to service hundreds of thousands to millions of notifications in a very short timespan. Is there a group or person at Apple that I can contact regarding miniizing latency of push notifications?
Posted
by EdA.
Last updated
.