"This accessory may not be supported"
When I plug in my charging cable I sometimes get a message saying "This accessory may not be supported". It doesn't happen all of the time and the device will start to charge before I get the message. In addition, when I put it on an Apple approved wireless charger sometimes it won't charge. There is no visible damage to the charging port and the cable is from an AT&T store.
iPhone 8, iOS 12.0.1