love icon indicating copy to clipboard operation
love copied to clipboard

Add viberation variations to iOS

Open ParticleG opened this issue 2 years ago • 2 comments

This pull request is for #1904

ParticleG avatar Feb 22 '23 01:02 ParticleG

Android does expose some haptic feedback preset types, but I'm not sure they really have the exact same meanings as iOS, in which case I suppose iOS and Android are sort of incompatible with each other in terms of the types of haptic feedback they expose...

I'm not sure how I feel about having a function which does radically different things (and effectively accepts different parameters) depending on the platform. I guess it was like that a little bit already, but this makes the difference even bigger.

slime73 avatar Feb 26 '23 20:02 slime73

Android does expose some haptic feedback preset types, but I'm not sure they really have the exact same meanings as iOS, in which case I suppose iOS and Android are sort of incompatible with each other in terms of the types of haptic feedback they expose...

I'm not sure how I feel about having a function which does radically different things (and effectively accepts different parameters) depending on the platform. I guess it was like that a little bit already, but this makes the difference even bigger.

Well, currently Android would switch between haptic vibration and normal long vibration depends on how long the vibration is, while iOS could only provide a constant 500ms vibration, and that's a big difference. Different platforms accept different params do sounds bad, so I'm considering tweaking iOS's vibration only with the seconds param, as I mentioned in the #1904 . Maybe test it on 4 ~ 5 iphone/android phone I think.

ParticleG avatar Feb 27 '23 03:02 ParticleG