I have a couple of those magnstic USB cables. There is a tiny plug that sits in the usb port all the time. The cable sinply snaps to it to charge due to the magnet. A large number of these type of cables aren't that good. The best style in my opinion is the round style. It makes it charge only, but if you really need data you can simply unplug it. This protects the port from wear and tear, and in particular, dust and other crud. There are plugs for micro-usb, usb-c, and lightning. They all take the same cable. Even better i have a Blitzwolf usb charger that supports all my devices. Most usb chargers will work with most devices, but potentially charge at a slower speed. This charger supports multiple different speed charge modes and standards. I decided to take this route after experiening the exact same thing on two of my older devices over the years.