Hi @JoeKun! I tried this out but the app crashes with exception:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'MPMediaPropertyPredicate cannot filter using the playbackStoreID property.'
Post
Replies
Boosts
Views
Activity
I agree, it could be an accidental duplicate, or you simply decided it’s not the right question to ask because for example you misunderstood something or decided to take a different approach. It generally just feels kinda wrong to not be able to delete your data.
Thanks @JoeKun, that's an interesting approach. Looks like there's a new native SDK that may be able to accomplish the same thing as the Web SDK you've linked to? Would you happen to have any sample/pseudo code to demonstrate the idea? Thanks!
Okay I have filed FB9115323, thank you
Thanks, I have submitted FB9141288
Thanks, though I believe that would not be necessary to achieve this since the app can trigger the widget to reload. What we need is the main iOS app to enable NSPersistentCloudKitContainer to sync in the background right, is that possible?
Confirmed, thanks!!
Thanks so much for the follow-up 🥺
Thanks, this is what I’m using now, I then convert that data to a UIImage to share, but this has several problems noted above :)
I ended up using PHAssetResource to get the resource then call PHAssetResourceManager.writeData to save the image to a temporary file. That way I can still share an array of file URLs. Nice thing about this is it shows metadata in the share sheet, most useful when sharing a single file.
This worked on iPhone but isn't working on iPad. Is there more we need to do?
No, we removed this feature from our app due to the limitations.
I've not noticed this before, but am encountering it in iOS 17.2. The difference in my crash stack trace is after -[MPMusicPlayerApplicationController _establishConnectionIfNeeded] I have -[MPMusicPlayerController _validateServer] + 128. FB13308546 includes crash reports and a sysdiagnose.
You’re right that Photos knows the asset’s time zone. You can even change it in Adjust Date & Time. Where in the EXIF metadata is the time zone? I only see dates without time zone info.
The problem with translating an asset’s location to TimeZone is iOS allows you to change the time zone via Adjust Date & Time (and there may not even be a location). It seems we need an API to expose its time zone.