-
Notifications
You must be signed in to change notification settings - Fork 67
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
Vibration.hasVibrator() promise false in iOS #50
Comments
Yeah, seems like it's a bug. I'll fix it as soon as I can. |
I am having the same issue. I had to downgrade the package for now. Appreciate very much if you can fix it. |
@ZhuBoao I called |
@hrshs I guess the iPad or maybe some iPods running iOS doesn't have any vibrator, so there should be a proper fix on iOS as well. Anyway, if the app only runs on iPhones, I agree we could safely assume that |
@ZhuBoao Which version are you downgrading it to? |
I just published version 1.7.3. Hope it works! |
@benjamindean I just tested |
Seems like the issue was resolved. Simulator env detection was migrated from Objective-C by mistake. |
Vibration.hasVibrator()
in iOS always promis false.I've checked swift code and you get the value of
hasVibrator
fromTARGET_OS_SIMULATOR == 1
and then this code always returns false in physical iOS device.What's wrong?
The text was updated successfully, but these errors were encountered: