See:
here
This includes a 1 pixel webview, which is used to get orientation, see e.g. line 61 and following for the possible values
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.