Ionic Vue Insomnia

What is the proper way of having the Insomnia functionality with Ionic Vue?
thus to prevent the screen of the mobile device from falling asleep and to allow it again

there is a package but which doesn’t work with Vue 3 as far as I can see

the solution is installing the @ionic-native/insomnia package like an cordova plugin (if you are using capacitor)

on another note: you might also be interested in Background Mode