Laura thanks for your awesome work! This is a great & useful piece of code you have written.
Fixed by pull request #63
iPads with deviceOrientation of faceUp are often in landscape orientation. The code currently assumes portrait orientation. This pull request solves the issue by using statusBarOrientation for faceUp and faceDown deviceOrientation (only).