httpswift / swifter

Tiny http server engine written in Swift programming language.
BSD 3-Clause "New" or "Revised" License
3.87k stars 538 forks source link

IOS 16.4problem: Restricted network ports are not allowed #537

Open ShanyChen opened 1 year ago

ShanyChen commented 1 year ago

the code works fine in ios version below 16.4. but in ios 16.4, the safari could not load url, the web was blank with "safari could not open the web page,the error is Restricted network ports are not allowed" in it. Please fix the problem.

r10s commented 1 year ago

Delta Chat has the same issue since iOS 16.4: we're using HttpServer to pass a data:-url to Safari to get deep links inside the app as of https://swiftrocks.com/adding-deeplink-shortcuts-to-the-ios-home-screen.html - which stopped working as well with recent iOS updates.

things i tried so far did not work out, so in case someone has an idea, that'd be very welcome. of course, if we figure out a solution, we will also report here :)

huynguyen1991 commented 11 months ago

@r10s I also had a similar problem. Have you solved it yet, please guide me.

r10s commented 4 months ago

Have you solved it yet, please guide me.

no solution, things only got worse :)

recently apple decided to drop "Home Shortcuts" as used by web apps and for deep-linking at all, https://9to5mac.com/2024/02/15/ios-17-4-web-apps-european-union/

so, for Delta Chat's usecase of deep linking, the original issue of a restricted network port became a minor one :)

/offtopic