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

examples/vibrate: doesn't work on mobile browsers #2602

Closed
1 of 10 tasks
hajimehoshi opened this issue Mar 14, 2023 · 1 comment
Closed
1 of 10 tasks

examples/vibrate: doesn't work on mobile browsers #2602

hajimehoshi opened this issue Mar 14, 2023 · 1 comment

Comments

@hajimehoshi
Copy link
Owner

Ebitengine Version

e4aace6

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • OpenBSD
  • Android
  • iOS
  • Nintendo Switch
  • Xbox
  • Web Browsers

Go Version (go version)

go version go1.20 darwin/amd64

What steps will reproduce the problem?

Run go run ./examples/vibrate and open a mobile browser (I used Pixel 6's Chrome)

What is the expected result?

A mobile device vibrates when touching

What happens instead?

A mobile device doesn't vibrate

Anything else you feel useful to add?

wasm_exec.js:349 [Intervention] Blocked call to navigator.vibrate because user hasn't tapped on the frame or any embedded frame yet
@hajimehoshi hajimehoshi added this to the v2.5.0 milestone Mar 14, 2023
@github-actions github-actions bot added the os:js label Mar 14, 2023
@hajimehoshi
Copy link
Owner Author

It was because Android is in the sleep mode.

@hajimehoshi hajimehoshi closed this as not planned Won't fix, can't repro, duplicate, stale Mar 14, 2023
@hajimehoshi hajimehoshi removed this from the v2.5.0 milestone Mar 14, 2023
@hajimehoshi hajimehoshi added wontfix and removed bug labels Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant