capawesome-team / capacitor-mlkit

⚑️ ML Kit plugins for Capacitor. Supports Android and iOS.
https://capawesome.io/plugins/mlkit/
Apache License 2.0
147 stars 46 forks source link

bug: It can not working on a Modal #155

Closed Coder7777 closed 6 months ago

Coder7777 commented 6 months ago

Plugin(s)

Version

6.0.0

Platform(s)

Current behavior

I pop up a Modal first, then in that Modal page use 'startScan', it does not work, always shows black background only.

But, If I use in a normal page(non-modal page), it works fine. It seems the camera live stream cover by the first Modal page.

Expected behavior

Show camera live stream

Reproduction

...

Steps to reproduce

https://github.com/capawesome-team/capacitor-mlkit/assets/17242425/6a3f7d4c-38ca-45ea-896a-fbcc4227394f

Other information

No response

Capacitor doctor

πŸ’Š Capacitor Doctor πŸ’Š

Latest Dependencies:

@capacitor/cli: 6.0.0 @capacitor/core: 6.0.0 @capacitor/android: 6.0.0 @capacitor/ios: 6.0.0

Installed Dependencies:

@capacitor/cli: 6.0.0 @capacitor/core: 6.0.0 @capacitor/android: 6.0.0 @capacitor/ios: 6.0.0

[success] iOS looking great! πŸ‘Œ [success] Android looking great! πŸ‘Œ

Before submitting

robingenz commented 6 months ago

If it's works on non-modal pages there should be an issue with your css rules. This is nothing I can fix within the plugin. I'm therefore closing this issue.