Use Clean Energy Charging on your iPhone
Learn about Clean Energy Charging
Some settings need to be turned on
Go to Settings > Battery > Battery Health & Charging and make sure that Clean Energy Charging is on. Go to Settings > Privacy & Security > Location Services and make sure that Location Services is on. Go to Settings > Privacy & Security > Location Services > System Services and make sure that System Customization is on. Go to Settings > Privacy & Security > Location Services > System Services > Significant Locations and make sure that Significant Locations is on.
If you need to override Clean Energy Charging