Post

Replies

Boosts

Views

Activity

Reply to [SKStoreReviewController requestReview] does not work. On M1 Macbook
What do you mean by "does not work"? Are you getting a crash, or does the screen just not show? When I tried showing the new StoreKit manage subscriptions view, it would straight up crash my app running on apple silicon because of a symbol not found runtime exception. In your case, I don't see anything wrong with the availability so I'm guessing it isn't a runtime crash you're observing, right? As for what to do, that is sort of up to you. If you want your code to behave conditionally, you can inspect this property and use to make a code branch: ProcessInfo isiOSAppOnMac
Jan ’22
Reply to Multipeer Connectivity and Core Bluetooth Tx power level
Do you know that the transport being used is BLE (opposed to P2P WiFi)? Is your range still poor if you disable WiFi (trying to force Bluetooth transport as an experiment)? Is the observed performance different if there is a paired Apple Watch or not? This seems like a good item to create as a feedback to Apple if the performance regressed so significantly. Regarding your question, there isn't any API I want to say that the tx power is 0 db when advertising / acting as a peripheral.
Jan ’22
Reply to Is ASWebAuthenticationSession compatible with App Clips?
I shared my code with my main app target and specified a custom url scheme matching the cloudkit-icloud.[containername]://authToken and I see my ASWebAuthenticationSession getting invoked with the new token. So I know that code is wired up properly and functional It is stated in the Exploring App Clips video that they do not support URL Schemes, when I have the same URL scheme specified, safari says "Safari cannot open the page because the address is invalid." which makes sense if the App Clip isn't registering the URL with the system. When I try to use the https:// [advanced-app-clip-invocation-url] safari view controller is redirecting to my web page that matches the app clip url--not the app clip itself. Universal links are also explicitly not supported by App Clips either as per the same app clip video. I know there is a lot of interest in App Clips + CloudKit so I'll continue to post my findings.
Dec ’21
Reply to QuotaExceeded error questions
Few questions for clarity. Have you confirmed with that user that their iCloud storage is in fact full? When you save the game save a secondary time, are you updating that record, or deleting then saving a new one? Assuming you're using the CKModifyRecordsOperation, how are you handling merge conflicts (i.e. two device scenario race condition).
Dec ’21
Reply to Can I access HealthKit data for devices without an Apple ID?
Kevin, HealthKit is meant for a single individual, not 'shared'. HealthKit can be used without an Apple ID. It would be just the same as running on a simulator that isn't signed in. That having been said, while you could technically do it, it is overkill and using HealthKit outside of the intended scope. I'll speculate that the built-in pedometer will also not have super reliable results given the way each user walks is different. This is what generates samples for HealthKit under the hood. If you're going to pursue this concept, I would instead recommend using the CMPedometer API directly, which allows for up to 7-days of historical data.
Dec ’21
Reply to App Clips should support CloudKit for read-only access to the public database
I spoke with both App Clip and CloudKit engineers during WWDC 2021 in lab sessions. They're aware of the request. That having been said the temporary solution that we came to through conversation is to use the CloudKit Web Services. I've decided for my AppClip I can live with read-only access to just the public database. I have this working and have fully mirrored the CKQueryOperation and CKFetchRecordsOperation functionality using the Cloud Kit Web Services API. This is something that I would potentially open source if others are interested in working on it with me as an interim solution until (if) official support happens.
Sep ’21
Reply to AppClipCodeGenerator - Compressed URL too large
Their encoder can only fit in so many characters. QR codes have a lot more data storage capability. Check out this link for more details, however there is no clear documentation on the length. I was also looking for a concrete number but it is probably indeterminate. Unfortunately, my domain name is quite long so I'm probably stuck with only a few chars available for my query params :( Apple Documentation: Encoding a url in an app clip code
May ’21