Motion, detect orientation change

Does Motion (and the module it’s included in) remain in scope (i.e. not garbage collected) after you have executed that code as part of your app initialisation?

Might also be worth looking through this related topic in case the code samples and links give you any clues about what you’re doing differently to the working examples: Capacitor - Using Motion