battery does not charge via cable
The iPhone connected to the charger via the cable shows that it is charging, but after connecting the battery percentage drops very quickly, and it does not detect it when connected to the computer, but if it is charging wirelessly, it charges normally.
iPhone 12 mini, iOS 15