Please check if your iPhone disconnected from WiFi when the iPhone is locked.
When your iPhone is locked, it may still be connected to the internet if it has a Wi-Fi or cellular data connection. Here's how to check if your device is connected to the internet when the screen is locked on an iPhone:
- Wake up your iPhone: Press the home button or the power button to wake up your device.
- Check the status bar: Look at the status bar at the top of your screen. If you see Wi-Fi or cellular signal bars, your device is connected to the internet.
- Test your internet connection: If you want to test your internet connection, try accessing a website or opening an app that requires an internet connection. If the website or app loads, your device is connected to the internet.
Note that some apps may require you to unlock your device before they can access the internet, even if your device is connected. Additionally, some apps may have restrictions on their internet usage when the device is locked for security reasons.