I implemented a game for Apple TV where I have multiple SKSpriteNodes in a SKScene. Before tvOS 16 everything worked correctly, I could move around with the remote and focus all items in the correct way. Now, with tvOS 16, the app crashes with the following error:
Focus item RandomSKSpriteNode has a parent focus environment of MySKScene but this environment does not provide a container for focus items.
So then I tried to just set the SKScene's view, the parent environments focus item container, an empty view and more as the SKScene's focusItemContainer - this fixed the crash, but the focus behaves quite randomly. Some of the nodes cannot be focused then anymore, and the focus just jumps to random nodes, and not the one in which direction I swiped to.
override var focusItemContainer: UIFocusItemContainer? {
return view // parentFocusEnvironment?.focusItemContainer // UIView()
}
Does anyone have an idea what I have to set here as the focusItemContainer? It's so strange because everything worked before and I also cannot find anything about any breaking changes in the release notes. If you have any hints for that issue please let me know!
Post
Replies
Boosts
Views
Activity
Hello,so the general idea of the app is to track multiple mobile devices via GPS and show them on an other "admin" device on a map. The app should start as a prototype, but it is possible that the app will later be used in a company. Since I never set up the Apple account for a private company app, I wanted to ask for help/suggetions/experiences to set up the app/account correctly. So which kind of distribution option should be used?My idea is to use the enterprise account, since, as far as I know, the app won't be reviewed by Apple, which is probably needed since the tracking apps should really just simply track the GPS locations and send them to a server (eventually/probably also including some kind of identification/login process). So I guess this functionality would not be enough to pass a review, right?The problem with this approach is, that the tracked devices are from external companies/workers and as far as I know the enterprise distribution can only be used within one company.Additional info: The app will be used by around 80 devices in the beginning, but could increase at some later point. As far as I know, the company does not have a MDM yet.Besides the main question above, I wanted to ask if someone maybe already implemented something similar and maybe knows some important points which should be considered? Is a MDM needed? (If yes, what are the approximately costs?) Are there any legal points which have to be considered for such an tracking functionality?Thanks in advance for any help!