Game runs before the internet access permission is granted in ios

Godot Version

Godot 4.2.1

Question

When running my game in ios ,the connection logic is called , before getting the internet access in ios , because of that connection is failing.
Is there a callback after you have given internet access and then try to connect to sever