Apple's mistake was really that they didnt do proper load testing on their batteries. Had they shipped a battery that was capable of keeping up with the phone, this wouldn't have been a problem to begin with.
Instead, they pushed their users to buy new phones, or pricey fixes for a manufacturing mistake