Help me please with kiosk mode

I need to run the application in kiosk mode, but I can’ do it. I tried to use this plugin

but when I call a function “Capacitor.Plugins.KioskModePlugin.enableKioskMode();” or "Capacitor.Plugins.KioskModePlugin.disableKioskMode();"I get an error that it is not a function.
When I call a function “Capacitor.Plugins.KioskModePlugin.disable()” I get “native KioskModePlugin.disable (#87346680)
(index):340 result KioskModePlugin.disable (#87346680)” in console and no errors. But when I call a function “Capacitor.Plugins.KioskModePlugin.enable()” my app is crashes.