iPad intermittent charging when connected to macbook air.
I have an iPad mini with retina display and a macbook air (2014), for a while now whenever I connect my iPad to my mac, the charging icon keeps flickering between charging and not charging. My computer, just as well, keeps recognizing and unrecognizing the device. I tried updating both my devices and I even tried restoring my iPad, but nothing seems to work.
I am using an original apple cable (I've tried with two original already)
When connected to the wall power outlet it does work as usually.
My iPhone works correctly when connected to my mac's usb ports, I've checked both of them with different devices and they work just fine.
iPad Mini Wi-Fi, iOS 10.2.1, null