shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

281
active users

#cloudkit

0 posts0 participants0 posts today
Continued thread

I picked up SwiftData last year for my app, & it’s been an excruciatingly painful experience. Cloud syncing doesn’t always work, duplicate entries, etc.

Things didn’t really improve this year, although some internal things did, because some bugs have been cleaned up.

But… I just feel lost. I need the foundation of the app to be working, so I can dive into other APIs (Widgets, shortcuts, etc), but it’s been an uphill battle.

Okay, can any skilled devs guide me a little?

Is it possible to use #SwiftData’s non-CloudKit stuff (@Unique), etc. with the new custom (bring your own back-end) stuff?

What about CKSyncEngine? I *really* don’t want to roll my own server stack, but if push comes to shove, I’m doing it.

(If none of that is possible, I may just use Bodega W/ a custom server stack). Thoughts?

Continued thread

Thinking if I should just move away from NSPersistentCloudKitContainer and roll my own syncing with CKSyncEngine instead. Then I'd at least have full control over what's going on.

NSPersistentCloudKitContainer's convenience I was hoping for was the only reason why I moved away from GRDB to CoreData in the first place. I cannot accept that I did all that effort for nothing 🥲 #CloudKit

#CloudKit is driving me crazy… I just can't make syncing shared records work reliably on two devices. Every once in a while something breaks randomly.

My most recent problem is, that I can see notifications coming in, but nothing is getting synced due to the hundreds of errors „Deferring additional work. There is still an active request.“ and „ABC request was cancelled because there is already a pending request of type XYZ“

Continued thread

2/2 In the past I've tackled a similar need as shown in this screenshot: I synced everything, then filtered what was shown per device type.

If I were to use that approach, I could change the “Don't sync" button to “This device”, sync a UUID, filter with that and call it a day.

But I'd really prefer to offer the ability not to send some Objects to the cloud AT ALL!

🧠 is not coming up with an idea on how to do so w/ current model, though.

Suggestions? 😍

Bored on a Saturday? Help me figure out how to conceptually tackle a #coding problem! 😜

I'm building a #SwiftUI app with #SwiftData persistence and #CloudKit #sync.

Model is pretty simple, two classes – let's call them Object and Group – with a many-to-many relationship.

It would make sense for the User to be able to decide that some Objects are only available on the current device (so, NO sync!), others on all iPhones, etc.

See screenshots for the desired behavior.

1/2

For CloudKit subscriptions (CKQuerySubscription), If a single user has several devices, is the subscriptionID supposed to be unique for each device?

Or can I just use an ID of "favorites" across all devices?

I'm guessing it needs to be unique?

developer.apple.com/documentat

Apple Developer Documentationinit(recordType:predicate:subscriptionID:options:) | Apple Developer DocumentationCreates a named query-based subscription that queries records of a specific type.

#introduction

I’m on Mastodon for two things.

I build things on Apple platforms. I make @tact. I read (a lot) and post (a little) about related technologies: #Swift, #SwiftUI, #Combine, #CloudKit, #CoreData, #Xcode, as well as product design.

I support Ukraine. I follow Ukrainians and friends of 🇺🇦. Please donate to 🇺🇦 until 🗑🇷🇺 is gone: ukraineaidops.org or any other charity. My Twitter is mostly about Ukraine - twitter.com/jaanus

Ukraine Aid OpsUkraine Aid OpsWe are an international group of civilian volunteers securing protective gear and life-saving equipment, delivered directly into the hands of front line defenders in Ukraine.

I’m here for three things.

- Supporting Ukraine, hearing directly from Ukrainians. Hence my #NAFO profile header. Please donate to 🇺🇦 until 🗑🇷🇺 is gone: ukraineaidops.org or any other charity.

- Sharing and learning about development on #Apple platforms. #Swift, #SwiftUI, #CoreData, #CloudKit etc. I have background in both UX and engineering. I work as freelance developer and have my own project justtact.com

- Our little cute 🇪🇪 cesspit. Might post in Estonian sometimes.

Ukraine Aid OpsUkraine Aid OpsWe are an international group of civilian volunteers securing protective gear and life-saving equipment, delivered directly into the hands of front line defenders in Ukraine.