Giter Club home page Giter Club logo

Comments (9)

benjamindean avatar benjamindean commented on June 23, 2024

Yeah, seems like it's a bug. I'll fix it as soon as I can.

from flutter_vibration.

ZhuBoao avatar ZhuBoao commented on June 23, 2024

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.

hrshs avatar hrshs commented on June 23, 2024

@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 avatar ZhuBoao commented on June 23, 2024

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

benjamindean avatar benjamindean commented on June 23, 2024

@ZhuBoao Which version are you downgrading it to?

from flutter_vibration.

benjamindean avatar benjamindean commented on June 23, 2024

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

benjamindean avatar benjamindean commented on June 23, 2024

I just published version 1.7.3. Hope it works!

from flutter_vibration.

ZhuBoao avatar ZhuBoao commented on June 23, 2024

@benjamindean I just tested 1.7.3 on my iPhone X, and it works. Thanks!

from flutter_vibration.

benjamindean avatar benjamindean commented on June 23, 2024

Seems like the issue was resolved. Simulator env detection was migrated from Objective-C by mistake.

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.