[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?

Developer technologies | .NET | .NET MAUI
{count} votes

Your answer

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