Posts

Post not yet marked as solved
0 Replies
5 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
139 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
158 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
793 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
574 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.4k 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
.
Post not yet marked as solved
2 Replies
2.2k Views
In https://developer.apple.com/videos/play/wwdc2018/405/ the demo app named Trailblazer shows in minute 28 something that looks like a customized UISegmentedControl to me for switching reviews/photos. The project view in that Xcode shot does not show 3rd party libs. I wonder how this control was made. I did not find source code for that app.This is a screenshot of it:https://macmark.de//images/wwdc2018-405.png
Posted Last updated
.
Post not yet marked as solved
0 Replies
1.6k Views
With tvOS 10 setting the nowPlayingInfo worked without error and it showed the new infos on the top right corner above the screen saver of tvOS.With tvOS 11 i see this error in Xcode and no playing info is displayed on top of the screen saver:2017-07-12 16:41:45.454945+0200 radio.net[277:19185] [Default] No LanguageDataSource for item <TVPMPNowPlayingContentItem: 0x1c44b4be0 id=8BAFBBD6-9A4E-466E-9D8D-4D93C02434A9 title="Born in the U.S.A. / Bruce Springsteen">2017-07-12 16:41:45.457201+0200 radio.net[277:19185] [MediaRemote] Error Operation requires a client data source to have been registered. requesting item 8BAFBBD6-9A4E-466E-9D8D-4D93C02434A9 "Born in the U.S.A. / Bruce Springsteen" with <_MRPlaybackQueueRequestProtobuf: 0x1c4291490> { includeLanguageOptions = 1; length = 1; location = 0; requestID = "718E8BAC-0317-43B8-A93C-BB29601DDB29"; returnContentItemAssetsInUserCompletion = 1;} at indexPath ( 0)I guess i have to set the LanguageDataSource? I did not find out how to do this yet. Also, what does client data source mean?What do i have to do to let the nowPlayingInfo appear for my app on tvOS 11?The code is this:func updateNowPlaying(title:String, artworkImageURL:String) { var currentlyPlayingTrackInfo: [String : Any]? var image:UIImage = UIImage(named: "radio.png")! let url = URL(string: artworkImageURL) let data = try? Data(contentsOf: url!) if (data != nil) { image = UIImage(data: data!)! } let artwork = MPMediaItemArtwork.init(boundsSize: image.size, requestHandler: { (size) -> UIImage in return image }) currentlyPlayingTrackInfo = [MPMediaItemPropertyTitle: title, MPMediaItemPropertyMediaType: MPNowPlayingInfoMediaType.audio.rawValue, MPMediaItemPropertyArtwork: artwork] MPNowPlayingInfoCenter.default().nowPlayingInfo = currentlyPlayingTrackInfo }In Xcode debug output i can see this:[MediaRemote] [NowPlayingInfo] Ignoring nowPlayingInfo update because playback queue callbacks are set
Posted Last updated
.
Post not yet marked as solved
0 Replies
1.1k Views
The TVML JS element nowPlayingMenuItem shows black screen with tvOS 11.3 (15L5198d) and earlier betas. I have a bug report for this here but i fear it will not be fixed before the release. What can i do?https://bugreport.apple.com/web/?problemID=38170063In Xcode debug log i see this:Presenting view controllers on detached view controllers is discouraged <TVPMusicNowPlayingViewController: 0x7f918b1a2800>.2018-03-18 09:28:34.895374+0100 Radio.de[77567:12991780] Attachment range (0.000000,-1738.000000) must include 0 for sliding attachment type <UIAttachmentBehavior: 0x60400019fe40> <UIView: 0x7f918a4d41d0; frame = (0 0; 2 10); layer = <CALayer: 0x60400103b0e0>> <- D -> {1, 4.9999995231628418}2018-03-18 09:28:34.918558+0100 Radio.de[77567:12991780] Unbalanced calls to begin/end appearance transitions for <_TVPlaybackViewController: 0x7f918a4abc00>.The presentation happens automatically by the nowPlayingMenuItem and not by my code, it looks like an internal error.I just use the nowPlayingMenuItem element and it worked like a charme before with tvOS 11 until 11.3 beta:<?xml version="1.0" encoding="UTF-8" ?><document> <head> <style> .descriptionLayout { tv-text-max-lines: 8; } @media tv-template and (tv-theme:dark) { .badge { tv-tint-color: rgba(255, 255, 255, 1.0); tv-highlight-color: rgba(0, 0, 0, 1.0); } } </style> </head> <menuBarTemplate> <menuBar> <menuItem homeDocumentURL="/templates/Home.xml"> <title id="homeTitle">Home</title> </menuItem> <menuItem discoverDocumentURL="/templates/Discover.xml"> <title id="discoverTitle">Discover</title> </menuItem> <menuItem searchDocumentURL="/templates/Search.xml"> <title id="searchTitle">Search</title> </menuItem> <nowPlayingMenuItem> <title id="playingTitle">Playing</title> </nowPlayingMenuItem> </menuBar> </menuBarTemplate></document>
Posted Last updated
.
Post not yet marked as solved
0 Replies
433 Views
The now playing pop up is not shown anymore for 3rd party TVML JS apps due to a bug in tvOS 11.x https://bugreport.apple.com/web/?problemID=33894430Engineering from code level assist told me a long time ago i should wait for a bug fix but this did not happen. What can i do?
Posted Last updated
.
Post not yet marked as solved
2 Replies
3.9k Views
I would like to find out in my iOS app if the app was installed due to an ad campaign link. Google Analytics is doing this and it is tracked on their analytics web page. iTunes Connect is doing this too and it is also tracked on the iTC web page. I'm looking now for a way to get this information inside the app. When the app first starts i want to check if it was installed because the user was sent to the App Store by a campaign link and what campaign id it was. Is there a way for an iOS app to ask Google Analytics, Firebase or iTC/StoreKit what campaign has led to its install?
Posted Last updated
.