g123k / flutter_torch_compat

A plugin to enable or disable the torch of a device that works both on Android (including Android 4.x) and iOS.
https://pub.dev/packages/torch_compat
Apache License 2.0
7 stars 22 forks source link

MissingPluginException #7

Open UnifySoftTech opened 4 years ago

UnifySoftTech commented 4 years ago

ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method turnOff on channel g123k/torch_compat)

This is what i get when i try to use this package

g123k commented 4 years ago

@UnifySoftTech Do the other methods work?

nathanielheitsch commented 4 years ago

Same issue here: MissingPluginException (MissingPluginException(No implementation found for method turnOn on channel g123k/torch_compat))

Awaiting TorchCompat.hasTorch works fine however cannot test the turnOff method obviously.

Building on Samsung Galaxy S9+ (Android 10)

UnifySoftTech commented 4 years ago

I could debug that it was happening due to camera view being open seems like some sort of incompatible with each other, If you try to access it somewhere where camera is not open then it works fine.

Thanks

On Mon, Jul 27, 2020, 9:37 PM Nathaniel Heitsch notifications@github.com wrote:

Same issue here: MissingPluginException (MissingPluginException(No implementation found for method turnOn on channel g123k/torch_compat))

Awaiting TorchCompat.hasTorch works fine however cannot test the turnOff method obviously.

Building on Samsung Galaxy S9+ (Android 10)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/g123k/flutter_torch_compat/issues/7#issuecomment-664489252, or unsubscribe https://github.com/notifications/unsubscribe-auth/AII2OASPKDWA6N2CL7K5ZLDR5WQ4XANCNFSM4PFNSYHQ .

g123k commented 4 years ago

Only one instance of the camera can be opened at once. So this plugin can only be used if no camera is used elsewhere.

UnifySoftTech commented 4 years ago

Yes. Wish flutter would include this into their official package

On Mon, Jul 27, 2020, 10:09 PM Edouard Marquez notifications@github.com wrote:

Only one instance of the camera can be opened at once. So this plugin can only be used if no camera is used elsewhere.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/g123k/flutter_torch_compat/issues/7#issuecomment-664506581, or unsubscribe https://github.com/notifications/unsubscribe-auth/AII2OAWREU6DWTMS4PQ55G3R5WUTFANCNFSM4PFNSYHQ .

dayron9110 commented 3 years ago

Any solution for this?

UnifySoftTech commented 3 years ago

Not yet

On Sat, Dec 5, 2020, 5:05 AM Dayron notifications@github.com wrote:

Any solution for this?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/g123k/flutter_torch_compat/issues/7#issuecomment-739077157, or unsubscribe https://github.com/notifications/unsubscribe-auth/AII2OAQCCTM7I2XOQIWWP2LSTFW37ANCNFSM4PFNSYHQ .

qianxuechao commented 3 years ago

http://blog.z7ge.com/archives/flutter-missingpluginexception-bu-yao-huang 希望能帮到你