iOS 14 green dot notification light always visible after accessing camera in flutter multi_image_picker 4.7.14

971 views Asked by At

with multi_image_picker flutter first, I select to choose a picture. Then my camera is starting the green dot is showing it's fine. But after choosing an image it should be invisible. It is still visible then the entire application. How I can resolve this in flutter? please give me some suggestions to get rid of this.

enter image description here

1

There are 1 answers

0
Aleksandr B. On

You can investigate Photos or PhotoKit native frameworks more precisely.

I'm not sure about your specific use case, but it seems the solution might be similar to the answer

[self.captureSession stopRunning];
[self.previewLayer removeFromSuperlayer];
self.previewLayer = nil;
self.captureSession = nil;