As for March 2025, this "bug" probably still exists.
Everything works fine and well, but if the popup won't show.
I use Qt for development, so I just basically tried a fresh app installation without any permission given with following code:
QTcpSocket *socket = new QTcpSocket();
QObject::connect(socket, &QTcpSocket::connected, [](){
qDebug() << "Successfully connected to the server.";
});
QObject::connect(socket, QOverload<QAbstractSocket::SocketError>::of(&QTcpSocket::errorOccurred),
[socket](QAbstractSocket::SocketError socketError){
qDebug() << "Socket error: " << socketError << socket->errorString();
});
socket->connectToHost("MY-HOST", 1234);
if (!socket->waitForConnected(5000)) {
qDebug() << "Can't connect to the server " << socket->errorString();
} else {
qDebug() << "Successfully connected to the server";
}
Then I checked my backend listening to incoming TCP 1234 connections.
I was able to see this incoming connection without any problem!
nc -lvp 1234
listening on [any] 1234 ...
connect to [*.*.*.196] from dslb-*-*-*-*.0.0.*-ip.de [*.*.*.*] 19177
This is definitely a case for https://developer.apple.com/documentation/technotes/tn3179-understanding-local-network-privacy, but the popup doesn't want to show up.
Operation Required
Making an outgoing TCP connection yes
And yes, I do have Info.plist key for that:
<key>NSLocalNetworkUsageDescription</key>
<string>The app needs the local network to establish a connection with the device.</string>
Any ideas? 😀
Topic:
Privacy & Security
SubTopic:
General
Tags: