Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always Get isEnabled - false #5

Open
moshe-l opened this issue Nov 6, 2023 · 1 comment
Open

Always Get isEnabled - false #5

moshe-l opened this issue Nov 6, 2023 · 1 comment

Comments

@moshe-l
Copy link

moshe-l commented Nov 6, 2023

I use this plugin in ionic 5 and Capacitor.
When i run:
KioskMode.enable().then(res => console.log(res))
The log is - 'OK'.

But still when i run:
KioskMode.isEnabled().then(res => console.log(res))
The log is - false.

Any idea? Thanks!

@JannikHv
Copy link

JannikHv commented Nov 6, 2023

Is there anything to be seen in the ADB logs in that regard? Also, perhaps this is a timing issue? Please try something like that:

await KioskMode.enable();
console.log(await KioskMode.isEnabled());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants