The iPhone can be charged by the bed, but it needs to pay attention to safety issues. First of all, you should choose good quality chargers and data cables to avoid safety problems caused by electrical failures.
Secondly, do not place the charger and data cable near the bedside to avoid accidentally touching the power cord while sleeping, leading to safety risks. In addition, it is recommended to unplug the phone after it is fully charged to avoid the impact of long-term overcharging on battery life. The most important thing is to stay alert and avoid unsafe behaviors such as playing with your phone while charging or placing it under your pillow.