This reminds me of Steve Jobs and his absolute refusal to let flash run on the iPhone. I think we're better now for that, but we had a few rough years for that.
I don't think either of those is very similar to the wiper thing. one is using the leverage of owning a major OS to force third parties to do something better for the end user in a context where the stakes are pretty low (ie, no one is going to die). even if it works out in the long run, the wiper only benefits tesla. and in the meantime it is a serious safety risk for the end user.
Back then there was some value add in having access to native APIs but over time we've just added more and more web APIs to bridge that gap.