Posts

Post not yet marked as solved
5 Replies
602 Views
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.
Posted Last updated
.
Post not yet marked as solved
3 Replies
878 Views
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?
Posted Last updated
.
Post not yet marked as solved
0 Replies
867 Views
Do i need SwiftUI to register a listener and display StoreKit messages in iOS 16? Or can it be done without SwiftUI? Maybe just Swift or even Objective-C? What's new with in-app purchase - WWDC22 - Videos - Apple Developer https://developer.apple.com/wwdc22/10007 https://developer.apple.com/documentation/swiftui/environmentvalues/displaystorekitmessage/
Posted Last updated
.
Post not yet marked as solved
0 Replies
388 Views
Since iOS 15 the app i develop is on many devices no longer listed in Settings > Apple-ID > iCloud. It used to be there. The app uses iCloud Key-Value-Storage. On some devices it is listed and on some not. I did not change iCloud related things. It seems to be something with iOS 15. Does anyone else have this problem? How can i ensure the app is listed in iCloud settings?
Posted Last updated
.
Post not yet marked as solved
1 Replies
1.4k Views
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.
Posted Last updated
.
Post marked as solved
2 Replies
889 Views
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
Posted Last updated
.
Post marked as solved
1 Replies
1.9k Views
I created an iOS App Extension and defined a single entry INPlayMediaIntent in the extension's plist IntentsSupported array. Everything was fine. But since a few days (WWDC 2019) i have trouble submitting the app to TestFlight/App Store Connect.I followed Apple's instructions and succuessfully fixed these errors:ITMS-90626: Invalid Siri Support - No example phrase was provided for INPlayMediaIntent in the … language. Please refer to "https://developer.apple.com/documentation/sirikit/registering_custom_vocabulary_with_sirikit/global_vocabulary_reference/intent_phrasesITMS-90626: Invalid Siri Support - No intent parameters specified for bundle … language … vocabulary policy #1Now I'm trying to provide an intent parameter in the AppIntentVocabulary.plist here: ParameterVocabularies ParameterNames INPlayMediaIntent.mediaItems I tried it with various strings in ParameterNames and all were wrong according to these App Store emails:ITMS-90626: Invalid Siri Support - "INPlayMediaIntent.mediaItems" is not a supported intent parameter of the subscribed intentsITMS-90626: Invalid Siri Support - "INPlayMediaIntent.mediaContainer" is not a supported intent parameter of the subscribed intentsITMS-90626: Invalid Siri Support - "INPlayMediaIntent.identifier" is not a supported intent parameter of the subscribed intentsWhat would be a valid parameter name for an INPlayMediaIntent here?It could be so easy because Apple has an example project for INPlayMediaIntent here which i used to learn for my project:https://developer.apple.com/documentation/sirikit/media/playing_media_through_siri_shortcuts?language=objcBut: This project seems not to be up to date since it is missing the AppIntentVocabulary.plist which seems to be required recently. Maybe Apple can update that project example to make things clear again?
Posted Last updated
.