How does the iPhone know it's not using an Apple cable? Sometimes when I plug a cable in to charge, the iPhone says it may not work with this device. How does it know it's not an Apple cable?
Apple has a program called MFi and detects if the cable has a certified chip inside. The chip just says that it's been officially 'Made For iOS.'