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

setKiosk(false) issue #469

Open
luca-skrzydlewski-ssg opened this issue Jul 3, 2024 · 2 comments
Open

setKiosk(false) issue #469

luca-skrzydlewski-ssg opened this issue Jul 3, 2024 · 2 comments

Comments

@luca-skrzydlewski-ssg
Copy link

I used this code to close the app and disable kiosk:

TemiProvider.setKiosk(false)
finishAffinity(activity)
exitProcess(-1)

but it doesn't work anymore, the app closes but as it is still a kiosk it reopens immediately.
Is there any problem with setKiosk method?

@zjn0505
Copy link
Contributor

zjn0505 commented Jul 4, 2024

Please make sure this method is actually called.

https://github.com/robotemi/sdk/wiki/Kiosk-Mode#setkioskmodeon

@luca-skrzydlewski-ssg
Copy link
Author

Yes, setKiosk is a simple wrapper for setKioskModeOn:

fun setKiosk(enable: Boolean = true) {
    Robot.getInstance().setKioskModeOn(enable)
}

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