Fixed by commit https://github.com/richtr/deviceorientation/commit/55cd10c6284c92b392e60f44d038992948252f45