Close Chrome custom tabs and app

I have created a simple application with chrome custom tabs. I started chrome custom tabs after screen 1 and did not design anything. But when I click to close chrome custom tabs it goes back to screen 1 white (it closes chrome custom tabs but does not close screen 1 and does not exit). Please help me what to do when I close chrome custom tabs and my application also closes.

@MWW_88 Instead, use the webview and make your logic to close the app simple.

I tried but my app catalog can’t use webview because when adding webview from niotron it will automatically add permissions like read_external_storage, write_external_storage. But I can’t remove these permissions when using niotron webview so I use chrome custom tabs.

@MWW_88 As there is no event block to detect the closing of the custom tab, it is currently not possible.