ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
50.71k stars 13.51k forks source link

feat: Add haptic feedback for ion-picker on iOS #20003

Closed rajiramamoorthi closed 4 years ago

rajiramamoorthi commented 4 years ago

Please add ticker sound for picker like ios native picker. Currently it is showing as a ion popover, Could provide option to integreate inside page like ion slider component.

liamdebeasi commented 4 years ago

Thanks for the issue. Are you referring to the haptic feedback you get whenever you select an item in the native iOS picker?

rajiramamoorthi commented 4 years ago

Yes you are correct. I am looking haptic feedback sound only.

rajiramamoorthi commented 4 years ago

Thanks for the issue. Are you referring to the haptic feedback you get whenever you select an item in the native iOS picker?

Yes you are correct. I am looking haptic feedback sound only.

rajiramamoorthi commented 4 years ago

Thanks for the issue. Are you referring to the haptic feedback you get whenever you select an item in the native iOS picker?

Any update on this?

byronaltice commented 4 years ago

We also need haptic feedback for pickers. Any update?

rajiramamoorthi commented 4 years ago

Any update on this

netsesame2 commented 4 years ago

Currently, the only workaround is adding cordova-plugin-taptic-engine.

picker.onDidDismiss().then(() => {
    this.tapTic.gestureSelectionEnd();
});

picker.present().then(() => {
    this.tapTic.gestureSelectionStart();
});

BTW: Since ionic team encourage to use Capacitor instead of Cordova, and Haptics is a default plugin in Capacitor, this feature should be integrated when use Capacitor.

nikbabchenko commented 4 years ago

Currently, the only workaround is adding cordova-plugin-taptic-engine.

picker.onDidDismiss().then(() => {
    this.tapTic.gestureSelectionEnd();
});

picker.present().then(() => {
    this.tapTic.gestureSelectionStart();
});

BTW: Since ionic team encourage to use Capacitor instead of Cordova, and Haptics is a default plugin in Capacitor, this feature should be integrated when use Capacitor.

doesn't work with a capacitor for me. No haptic feedback.

netsesame2 commented 4 years ago

@nikbabchenko Hi, what I said is a suggestion to ionic team, no capacitor support is avaluable now.

nikbabchenko commented 4 years ago

thank you, @netsesame2 :-)

liamdebeasi commented 4 years ago

Thanks for the issue. This has been resolved via https://github.com/ionic-team/ionic/pull/21268, and a fix will be available in an upcoming release of Ionic Framework.

ionitron-bot[bot] commented 4 years ago

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.