-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
- v4.x
- v5.x
- v6.x
- Nightly
Current Behavior
datetime, time picker scroll on safari desktop produces console error on every click of hours or minutes.
Unhandled Promise rejection: – "Browser does not support the vibrate API" – "; Zone:" – "<root>" – "; Task:" – "Promise.then" – "; Value:" (2)
Expected Behavior
We have haptics installed and is used on mobile/native but when using same app on the web in browser datetime should not be trying to call the vibrate api.
If we remove the import { Haptics } the error goes away. But we need it present for mobile version.
Steps to Reproduce
Any app with datetime popup to scroll the time wheel and on safari desktop.
Code Reproduction URL
No response
Ionic Info
Ionic:
Ionic CLI : 6.20.1 (/opt/homebrew/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.3.0
@angular-devkit/build-angular : 14.2.5
@angular-devkit/schematics : 14.2.5
@angular/cli : 14.2.5
@ionic/angular-toolkit : 7.0.0
Capacitor:
Capacitor CLI : 4.3.0
@capacitor/android : 4.3.0
@capacitor/core : 4.3.0
@capacitor/ios : 4.3.0
Utility:
cordova-res : 0.15.4
native-run : 1.7.1
System:
NodeJS : v14.20.0 (/opt/homebrew/Cellar/node@14/14.20.0/bin/node)
npm : 6.14.17
OS : macOS Monterey
Additional Information
No response