Comments (9)
Yeah, seems like it's a bug. I'll fix it as soon as I can.
from flutter_vibration.
I am having the same issue. I had to downgrade the package for now. Appreciate very much if you can fix it.
from flutter_vibration.
@ZhuBoao I called Vibration.hasVibrator()
only in android platform. I think it didn't cause any problem because the developer just check the device is physical or simulator.
from flutter_vibration.
@ZhuBoao I called
Vibration.hasVibrator()
only in android platform. I think it didn't cause any problem because the developer just check the device is physical or simulator.
@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 hasVibrator()
return true.
from flutter_vibration.
@ZhuBoao Which version are you downgrading it to?
from flutter_vibration.
@ZhuBoao I created #52 for testing. If you have a physical device to test it on - I would really appreciate it. I don't have any, so that's why iOS code is kind of neglected.
from flutter_vibration.
I just published version 1.7.3. Hope it works!
from flutter_vibration.
@benjamindean I just tested 1.7.3
on my iPhone X, and it works. Thanks!
from flutter_vibration.
Seems like the issue was resolved. Simulator env detection was migrated from Objective-C by mistake.
from flutter_vibration.
Related Issues (20)
- Vibration works only once but never more than that HOT 4
- Vibration on web? HOT 3
- iOS : Conflict with SystemSound.play(SystemSoundType.click)
- MissingPluginException on Linux desktop HOT 2
- Doesn't vibrate during phone calls
- Vibrate fails on iOS using custom pattern HOT 16
- Fix vibration web HOT 2
- Small Vibration interval not working HOT 2
- hasVibrator() throws exceptions on MacOS HOT 5
- Face this error in android studio terminal HOT 4
- Problem building on Android HOT 1
- Web version not working
- Deprecation warning HOT 3
- Impossible to do a small vibration HOT 3
- Problem with ios 16 HOT 3
- iOS errors - vibrate with custom duration and vibration cancel not working HOT 2
- Avoid static methods so we can mock it HOT 1
- Please add 1.8.4 version to changelog HOT 1
- Migrate to package:web to support WASM HOT 1
- Support OpenHarmony HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_vibration.