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

Keep display on if navigation view is shown #302

Open
ziga-hvalec opened this issue Oct 15, 2024 · 4 comments
Open

Keep display on if navigation view is shown #302

ziga-hvalec opened this issue Oct 15, 2024 · 4 comments
Assignees
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@ziga-hvalec
Copy link
Collaborator

We've noticed that when using navigation and not interacting with it the display will turn off. Can Navigation sdk keep display on as long as navigation view is mounted?

@ziga-hvalec ziga-hvalec added triage me I really want to be triaged. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Oct 15, 2024
@jokerttu jokerttu added priority: p3 Desirable enhancement or fix. May not be included in next release. and removed triage me I really want to be triaged. labels Oct 16, 2024
@illuminati1911
Copy link
Contributor

Hey @ziga-hvalec thanks for reporting this!

Is this issue happening on both iOS and Android or just the other one?

@ziga-hvalec
Copy link
Collaborator Author

I believe both. But I only tested Android.

@illuminati1911
Copy link
Contributor

@ziga-hvalec Understood. I'm not sure if managing the screen's auto-off behavior falls within the scope of the navigation SDK. Anyway we will have internal discussion about what to do with this.

Meanwhile on iOS you can control this via:

[[UIApplication sharedApplication] setIdleTimerDisabled:YES];

and on Android:

requireActivity().getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
requireActivity().getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

@ziga-hvalec
Copy link
Collaborator Author

We already fix this issue on our side. but we expected this to be a part of nav sdk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

3 participants