Fixed by commit https://github.com/richtr/deviceorientation/commit/df7e00836af448353eba63308362411354c21785.