Function ondevicemotion

    Available only in secure contexts.

    MDN Reference