Giter Club home page Giter Club logo

Comments (11)

benjamindean avatar benjamindean commented on September 24, 2024

What error are you getting exactly?

from flutter_vibration.

bagintz avatar bagintz commented on September 24, 2024

I see this warning, which makes it sound like it won't work on devices < iOS 13.

Screen Shot 2020-06-25 at 9 40 00 AM

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)

Screen Shot 2020-06-25 at 9 43 16 AM

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.

bagintz avatar bagintz commented on September 24, 2024

@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.

benjamindean avatar benjamindean commented on September 24, 2024

So, just to be clear:

  1. It does work on Android without any issues.
  2. Crashes on iOS 12 devices.
  3. It probably works on iOS 13.

Correct?

from flutter_vibration.

bagintz avatar bagintz commented on September 24, 2024

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.

bagintz avatar bagintz commented on September 24, 2024

@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.

bagintz avatar bagintz commented on September 24, 2024

@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.

benjamindean avatar benjamindean commented on September 24, 2024

@bagintz I think it's only supported from iPhone 8. Check here (The first Note).

from flutter_vibration.

bagintz avatar bagintz commented on September 24, 2024

@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 avatar benjamindean commented on September 24, 2024

@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.

bagintz avatar bagintz commented on September 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.