Comments (11)
What error are you getting exactly?
from flutter_vibration.
I see this warning, which makes it sound like it won't work on devices < iOS 13.
It does print out my test messages for Normal Vibrate and Amplitude Control (taken from your example), but no vibration happens. I do get a crash when trying Custom Control:
Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)
I am not sure if I am getting the most informative error in XCode. If you point me somewhere else I can try to send more info.
from flutter_vibration.
@benjamindean Ok, user error (I am an Android user) on the Normal Vibrate and Amplitude Control errors. When I got vibration working in general on the phone those both worked fine. I still get a crash when I get to:
await Vibration.hasCustomVibrationsSupport()
in the Flutter code on an iOS 12 device. I am going to wait until someone else comes in the office with an iOS 13 device, I will test that then and let you know, but I assume it works on iOS 13.
from flutter_vibration.
So, just to be clear:
- It does work on Android without any issues.
- Crashes on iOS 12 devices.
- It probably works on iOS 13.
Correct?
from flutter_vibration.
Yes, I will test 3 and let you know for sure, but #1 and #2 is what I am seeing (Android 10)
from flutter_vibration.
@benjamindean just tested, everything works fine on iOS 13
So it seems that the custom options don't work, and actually crash 12, but everything else is good to go!
from flutter_vibration.
@benjamindean I got an iPhone 7 to test and for some reason now it will only trigger a single vibration even when using patterns, etc. Vibration.hasCustomVibrationsSupport()
is returning false. Do you have any ideas of why that might be happening on 13.5.1? Thanks!
from flutter_vibration.
@bagintz I think it's only supported from iPhone 8. Check here (The first Note).
from flutter_vibration.
@benjamindean that link just takes me to a long page of "technologies", I don't see a note. The other thing that I think is strange is that the iPhone 7 has the different vibration patterns like heartbeat, etc. So I would think it would work there ???
from flutter_vibration.
@benjamindean that link just takes me to a long page of "technologies", I don't see a note. The other thing that I think is strange is that the iPhone 7 has the different vibration patterns like heartbeat, etc. So I would think it would work there ???
Yes, it does, but seems like haptic engine is only supported on iPhone 8 and above. Not sure how accurate it is, but it's not surprising considering that it's Apple. Do you have anything newer than iPhone 7 to test it out?
from flutter_vibration.
One of my other developers tested it out on his newer iphone, last couple generations. And it worked as expected. I will figure something out to make it work at this point for iOS < 13 and iPhone 7 :). Thanks @benjamindean for a great plugin!
from flutter_vibration.
Related Issues (20)
- Vibration works only once but never more than that HOT 4
- Throws exception on web, doesn't work HOT 1
- Remove references to deprecated v1 Android embedding
- VibrationPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.
- 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 5
- iOS errors - vibrate with custom duration and vibration cancel not working HOT 3
- 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.