-
Notifications
You must be signed in to change notification settings - Fork 101
KioskPlugin.exitKiosk() does not seem to work #46
Comments
Does |
Hi, yes they are both returning true. The app is definitely in Kiosk mode. I'm not sure what the normal behavior of exitKiosk should be. Would it simply allow me to switch apps or display a menu to choose a new Launcher? |
|
Thanks for clarification. I went into that menu to manually set the launcher to the app initially. When The Android image mentioned above provide the choice of two launchers by default, Pixel Launcher and Google Launcher. After setting the app as default launcher I cannot get back into settings or anything so I have to delete the image. Have you tried it with Genymotion? Perhaps the root cause of this issue has to do with the android image that is supplied by the emulator. Just speculation at this point. If you test with Genymotion, probably a good idea to clone the test image you use to test the plugin to avoid having to recreate the image from scratch. |
Hi, we can rule out that this issue is caused by using a Genymotion android image. I have tried with POP7 Alcatel Tablet and able to reproduce the issue. I can confirm no launch selector menu is displayed when using this function on this device.
|
Can you obtain list of installed launchers (activities for using in intent) on your testing device/emulator? |
Yes, launchers on Genymotion Android S7 image are 'Google Now Launcher' and 'Pixel Launcher'. I did some more testing today and was able to get the Select launcher dialog to display using this plugin (https://github.com/guatedude2/cordova-plugin-kiosk-launcher) which is a based on your plugin. In your codebase the function is Comparing the two native Android calls they seem nearly identical except for one line.
guatedude2
hkalina
|
That is weird - both projects use identical code for existKiosk...
|
Please retest with latest version. I just tested on Windows 10 + latest Genymotion + Android you mention and kiosk exiting works ok: |
Unable to reproduce - closing - feel free to reopen if will find steps to reproduce the issue. |
Haven't had a chance to test yet. I will test again with screen recording and share results here. Thanks. |
No screen recording needed - I need way to reproduce the issue on my machine or more info at least. |
I will be using Meteor sample Todo application (https://github.com/meteor/todos) to replicate. Actual project which would not display Launch screen is also Meteor-based application. I'll commit code to a new repo so that it can be reproduced on your end. The Meteor app is built with same HTML/CSS/Javascript so very similar the sample kiosk-demo you created for this plugin. I'm as puzzled as your are as to why this issue is occurring. I'll do a screen record just so we're completely on the same page as to what might be the root cause. |
Hello, similar proplem, exitKiosk does nothing. But if I read correctly, in my case I wuld need a real exit kiosk: Some way to disable kiosk, or prevent it from starting, actually I can only exit the application and no send it in background, how could I achieve it? |
@LucaColombi the exitKiosk() should show launcher selection - which allows to switch to regular lanuncher and the current task is sent to background. Can you provide steps to reproducing? |
@hkalina @LucaColombi I'm developing an Ionic application and had the same issue where the exitKiosk does nothing (isInKiosk returns true, isSetAsLauncher returns true). |
This issue is occurring using Genymotion v2.12.0 Android emulator with S7 Android 6.0.0 API 23 image.
The app has a button, 'Exit Kiosk Mode' when it is clicked I can see the KioskPlugin.exitKiosk(); firing but still cannot switch app or access settings to change default launcher.
If the command KioskPlugin.exitKiosk(); is run directly in the console it returns undefined.
Any suggestions?
Thanks.
The text was updated successfully, but these errors were encountered: