Question: how to fix this accessory may not be supported on ipad?
Answer: Use the other original charging cable for your iPhone iPad.
Clean your Apple Accessory. ... 
Plug your charger in, when you get the error message press and hold your finger on the dismiss button and pull your charger out while still holding. ... 
Turn off the device with the Lightning plug attached, then restart.