I was all set to dunk on your comment by pointing out that if you're trying to interact with the hardware you've already done something very wrong,
but...
Nailed it.
Developing for iOS is predictable and plannable. Android has gotten better in this regard since the low of the mid 2010s, but...