Post

Replies

Boosts

Views

Activity

Receipts are now a thing of the past (server only?)
In developer.apple.com/wwdc22/10007 it is told at 20:43 about the IAP server API: Receipts are now a thing of the past, as these new services provide in-app data in signed JSON format, so you can easily parse it and trust that it came from the App Store server. Does the app still get the receipt? I ask because my app checks for the latest subscriptionExpirationDate of the receipts to determine if an active purchase is available.
5
0
797
Sep ’22
Time Profiler not showing measurement on code lines
I use the Time Profiler in Instruments 13.3.1. I follow the instructions of this video: developer.apple.com/wwdc19/411  At 15:34 minutes it shows the count at a code line. For me this line does not show such a count in the highlighted line. When i double click a line of my code in the Heaviest Stack Trace it shows my code and highlights the line of code in green but does not show the percentage. Switching to View as Value does not show a count for the line of code too. Is this a bug or did i miss something to configure?
3
2
1.1k
May ’22
Black playback screen tvOS 14.0.1 and 14.2
Since tvOS 14.0.1+ i see a black screen (with a time bar at the bottom) when playing an audio stream. From tvOS 10 to tvOS 14.0 it was showing the image i provided with code like this player = new Player(); player.playlist = new Playlist(); audio = new MediaItem('audio', stream); audio.title = title; audio.artworkImageURL = artwork; audio.subtitle = subtitle; audio.description = description; player.playlist.push(audio); player.play(); How can i make the image and subtitle appear again with tvOS 14.0.1 and 14.2? The same thing happens when playing audio with this sample project: https://developer.apple.com/documentation/tvmljs/playing_media_in_a_client-server_app
2
0
1k
Oct ’20
Combining constraints
In Xcode you can setup constraints for a Core Data entity with the Data Model Inspector in the Constraints area. For every constraint added via + it set the example constraint "comma,separated,properties". You can configure more than one such constraint.In the model file it looks like this:<entity>… <uniquenessConstraints> <uniquenessConstraint> <constraint value="parent"/> <constraint value="title"/> <constraint value="birthday"/> </uniquenessConstraint> <uniquenessConstraint> <constraint value="firstName"/> <constraint value="lastName"/> </uniquenessConstraint> </uniquenessConstraints></entity>Question: What it the logic? How to read this? Is it AND or OR inside a constraint? Is it AND or OR between multiple constraints?While testing i came to this conclusion:Every constraint says: All attributes in this constraint must have the same value for two ManagedObjects to matchOnly one constraint is required to match in order for two ManagedObjects to matchThis means:The attributes (constraint values) must all match per constraint (AND)At least one constraint must match (OR)Or with an example: Two ManagedObjects would match, if they have (the same parent AND title AND birthday) OR (the same firstName AND lastName).Is this correct?In this developer video https://developer.apple.com/videos/play/wwdc2015/220/?time=821they're importing recipe data from various sources and configure one constraint to avoid duplicates: "source,externlID". This looks like source and externlID must match both (AND) to identify a duplicate. This would support my interpretation for constraints above.
1
0
1.5k
Mar ’20