'Path was denied by NECP policy' in RemoteMediaSessionExtension

My app is using RemoteMediaSessionExtension to control speakers over the local network via the new Now Playing framework.

Starting with Beta 6, local network calls from the extension fail with 'Path was denied by NECP policy' error.

Is it a bug or an intentional change in the latest beta?

Answered by DTS Engineer in 903737022

Sorry this took so long; I got the answer a while back but I was OOO last week and so I’ve only now found time to reply.

Unfortunately I don’t come bearing good news. The behaviour you’re seeing in 27.0b6 and later is intended. Remote media extensions are expected to interact with servers on the wider Internet, not with local peers. Sadly, there were technical limitations that prevented us from applying that contraint in earlier beta seeds, which is why things worked on earlier seeds.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Starting with Beta 6

So, just be 100% clear, you were testing this on earlier iOS 27 beta seeds and didn’t this problem, right?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

That’s correct, with earlier seeds the extension was able to make local network calls. Main app has the local network permission granted, tried reinstalling to get the prompt again, all worked in the app but not in the extension still. I also have a widget extension, no issue there.

Sorry this took so long; I got the answer a while back but I was OOO last week and so I’ve only now found time to reply.

Unfortunately I don’t come bearing good news. The behaviour you’re seeing in 27.0b6 and later is intended. Remote media extensions are expected to interact with servers on the wider Internet, not with local peers. Sadly, there were technical limitations that prevented us from applying that contraint in earlier beta seeds, which is why things worked on earlier seeds.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

'Path was denied by NECP policy' in RemoteMediaSessionExtension
 
 
Q