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

Open other app after startKioskMode #507

Open
fabioselau077 opened this issue Jan 6, 2024 · 0 comments
Open

Open other app after startKioskMode #507

fabioselau077 opened this issue Jan 6, 2024 · 0 comments

Comments

@fabioselau077
Copy link

Hello, Android says that a 'pinned' app can open another app.

However, after calling startKioskMode() and the app is fixed, when I try to open another app, a notification appears saying that to do this I need to hold down both buttons...

So how do I enter another application without having to remove kiosk mode? To open the application I am using DeviceApps

bool isInstalled = await DeviceApps.isAppInstalled( 'com.app.my');

if (isInstalled) {
       DeviceApps.openApp('br.app.my');
} else {
       // ignore: use_build_context_synchronously
       ScaffoldMessenger.of(context)
       .showSnackBar(const SnackBar(
       content: Text('App not found!'),
       ));

Thx!

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

1 participant