Our xamarin forms project supported CarPlay and has a information template. I want to use custom back button on information template but when user click back button, handle section is not calling.
Back button create function codes:
private CPBarButton GetBackButton()
{
return new CPBarButton("Back", handler =>
{
try
{
if (interfaceController != null && interfaceController.Templates != null && interfaceController.Templates.Length > 1)
{
interfaceController.PopTemplate(true);
}
}
catch { }
});
}
Visual Studio version: Visual Studio 2022 17.7.3