flutter-moum / flutter_hardware_buttons

Flutter plugin for detecting all hardware buttons
MIT License
37 stars 47 forks source link

Not detect event volume #36

Closed nexussmart closed 4 years ago

nexussmart commented 4 years ago

Hi,

On iPhone 6s plus, there is no event volume up and volume down.

hardware_buttons: ^0.2.2

void initState() { super.initState(); _volumeButtonSubscription = volumeButtonEvents.listen((VolumeButtonEvent event) { print(event); setState(() { hasClickVolumeDown = VolumeButtonEvent.VOLUME_DOWN == event; hasClickVolumeDown = VolumeButtonEvent.VOLUME_UP == event; }); }); }

giantsol commented 4 years ago

Hi @nexussmart ! Will have a look at that tomorrow :) Thanks!

nexussmart commented 4 years ago

For information, If I click on the Power button and return to the app, the volume events are detected.

supratikkoley commented 4 years ago

Any update on this issue?

giantsol commented 4 years ago

Hi! Sorry we were busy lately. We're going to have a look at this shortly! Thanks.

giantsol commented 4 years ago

Hello @nexussmart We tested it on iPhone 6s plus os 12.0 and it seems to be fine. Could you tell me the version number? Thanks

nexussmart commented 4 years ago

Hi,

iPhone 6S Plus ios 10.3.3

Moreover,_volumeButtonSubscription?.cancel() closes the application brutally.

giantsol commented 4 years ago

I've reproduced the problem with iPhone 6S Plus ios 10.3.3. Will fix it ASAP. Thanks.

eojine commented 4 years ago

Hi, @nexussmart and @supratikkoley I think we've modified the volume button bug. If you think there are other issues, please leave a comment. Thanks.

nexussmart commented 4 years ago

Thanks,

Nice work