However, you should remember that keeping your iPhone screen on for extended periods can drain your battery faster.
Unfortunately, the iPhone does not provide a straightforward way to block the proximity sensor feature.
However, there are a few workarounds that you’re able to try.
Vlada Komar / Tab TV
One way is to keep the phone away from your face and other objects.
Alternatively, you could press the home button once or twice to wake your phone from sleep mode.
If neither of these methods works for you, the proximity sensor on your iPhone may be faulty.
modernize your iPhone software
Apple regularly releases software updates, including bug fixes and other improvements.
To check for updates, go toSettings > General > Software Update.
If an update is available, follow the on-screen instructions to download and install it.
Reset your iPhone options
Resetting your iPhones options to default values can sometimes resolve software issues.
Go toSettings > General > Transfer or Reset > Reset > Reset All Settingsto do this.
Note that this will erase your preferences and options but not delete your data or media.
If none of the above methods work, you may need to contact Apple Support for further assistance.
They can help diagnose the issue and recommend a solution.