Post

Replies

Boosts

Views

Activity

Bug with Settings bundle on tvOS since 15.0 ?
Hello, Since tvOS 15, my apps (and also some other popular apps like VLC) have problems with the Settings app. The Settings app will always show the default values for the items, not the actual value from UserDefaults. The app itself does get the right value, but when you go to the settings app, you don't see the right values, you always see the default values instead. This is only happening on the actual device, it works fine in the simulator. Am I missing something in my code, or is this a regression in tvOS ? Steps to reproduce: Install VLC Go to the Settings app, Apps, VLC Change the Playback speed from 1.00x to 2.00x Kill the Settings app or Reboot the Apple TV Check the value again, it's showing 1.00x (but VLC will play at speed 2.00x)
1
1
697
Nov ’21
Receiving UDP/5353 packets in iOS app
Hello, I am trying to write an iOS app which could receive and analyze mDNS queries. More specifically, I have my app register a Bonjour service, and I need to see queries from the network for any subtype of my primary type, although I have not registered any subtype myself. Reason being that I have a device that tries to find me using a specific primary type, but always includes a subtype in its queries, and I can't know the subtype in advance, so I can't register my service with the subtype. So I'd need to see the query, extract the subtype and re-register my service with that subtype so that the device can then find me. Looks like the various APIs to interact with Bonjour won't let me do that. I've tried another approach and started a NWListener on port 5353 with allowLocalEndpointReuse set to true, but I'm getting "Address already in use" and it doesn't work, since this port is likely to be used by the mDNSresponder service. Is there an API I could use to achieve what I described above ?
2
0
1.8k
Oct ’21
Bug with Settings bundle on tvOS since 15.0 ?
Hello, Since tvOS 15, my apps (and also some other popular apps like VLC) have problems with the Settings app. The Settings app will always show the default values for the items, not the actual value from UserDefaults. The app itself does get the right value, but when you go to the settings app, you don't see the right values, you always see the default values instead. This is only happening on the actual device, it works fine in the simulator. Am I missing something in my code, or is this a regression in tvOS ? Steps to reproduce: Install VLC Go to the Settings app, Apps, VLC Change the Playback speed from 1.00x to 2.00x Kill the Settings app or Reboot the Apple TV Check the value again, it's showing 1.00x (but VLC will play at speed 2.00x)
Replies
1
Boosts
1
Views
697
Activity
Nov ’21
Receiving UDP/5353 packets in iOS app
Hello, I am trying to write an iOS app which could receive and analyze mDNS queries. More specifically, I have my app register a Bonjour service, and I need to see queries from the network for any subtype of my primary type, although I have not registered any subtype myself. Reason being that I have a device that tries to find me using a specific primary type, but always includes a subtype in its queries, and I can't know the subtype in advance, so I can't register my service with the subtype. So I'd need to see the query, extract the subtype and re-register my service with that subtype so that the device can then find me. Looks like the various APIs to interact with Bonjour won't let me do that. I've tried another approach and started a NWListener on port 5353 with allowLocalEndpointReuse set to true, but I'm getting "Address already in use" and it doesn't work, since this port is likely to be used by the mDNSresponder service. Is there an API I could use to achieve what I described above ?
Replies
2
Boosts
0
Views
1.8k
Activity
Oct ’21