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