question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable vibration when scanner is not active

See original GitHub issue

When reactivate is set to false, after the first scan, each time a qr code is scanned, the phone vibrates, and the user might think they’re actually scanning something.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
skycskycommented, Jun 8, 2017

agree with mamodom. _handleBarCodeRead(e) {

if (!this.state.scanning) {
  Vibration.vibrate();
  this._setScanning(true);
  this.props.onRead(e)
  if (this.props.reactivate) {
    setTimeout(() => (this._setScanning(false)), this.props.reactivateTimeout);
  }
}
return;

}

move Vibration.vibrate(); into if condition will be good.

1reaction
moaazsidatcommented, Jun 13, 2017

Released in v0.0.12

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to turn off vibrations in Android 12 | My Computer My Way
1. Open the Settings app. Scroll down and select Accessibility. 2. Scroll down to the Interaction controls section and tap Vibration and haptics....
Read more >
How to turn off vibrations in Android 10 | My Computer My Way
On the vibration screen select the vibration you would like to turn off. Tap either Ring vibration, Notification vibration or Touch feedback.
Read more >
Disable the vibrating when pressing buttons on an Android 6 ...
How do I disable the vibrating when pressing buttons on an Android 6 device? ... Open the 'haptic.feedback.enabled' setting; Set Value to 0 ......
Read more >
How to control device vibration from Honeywell SDK
This article applies only to Honeywell SDK for Dolphin 60s and 70e running Windows Embedded Handheld 6.5.3. Apr 2, 2021•HSM Article ...
Read more >
Customize iPhone for vibration sensitivities - Apple Support
Turn off all vibrations: Go to Settings > Accessibility > Touch, then turn off Vibration. Note: This setting turns off vibrations for earthquake,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found