[Maui Embedded] DisconnectHandler not being called when page is closed

Douglas Marttinen 0 Reputation points
2023-10-26T01:10:00.19+00:00

I have a ContentPage that has a ZXing Barcode Reader view on it. On iOS, when I pop the page, it does not call DisconnectHandler on the view in the ContentPage - which is important because otherwise the camera stays on in the background and it is in DisconnectHandler where all this is cleaned up.

I am using Maui Embedded, is there something I should be doing to cleanup the content page after I am done with it?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,478 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.