Pixabay nickeloy image
iFixit has found that Apple has locked the batteries in the iPhone XR, XS and XS Max, so if anyone other than Apple or an Apple Authorized Service Provider replaces even if it's a real Apple battery, iOS replaces its health metrics in Settings> Battery with an ominous message not being able to confirm that the battery is genuine. Only Apple's internal diagnostic software can clear the message and restore battery health metrics, and Apple does not share that software outside of Apple's authorized service provider network. The good news is that battery life and performance are not affected.
Frankly, this is an anti-competitive behavior from Apple from Apple. Anyone who chooses to have an iPhone battery replaced by an independent repair shop ̵