Capacitor Version
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 8.4.0
@capacitor/core: 8.4.0
@capacitor/android: 8.4.0
@capacitor/ios: 8.4.0
Installed Dependencies:
@capacitor/ios: not installed
@capacitor/core: 8.4.0
@capacitor/android: 8.4.0
@capacitor/cli: 8.4.0
[success] Android looking great! 👌
Other API Details
Platforms Affected
Current Behavior
For repro I used npm init @capacitor/app@latest and then replaced index.html body with
< button > Open browser</ button >
< pre > </ pre >
and capacitor-welcome.js with
import { Browser } from '@capacitor/browser' ;
Browser . addListener ( 'browserFinished' , async ( ) => {
document . querySelector ( 'pre' ) . innerText += 'browserFinished\n' ;
} ) ;
document . querySelector ( 'button' ) . addEventListener ( 'click' , ( ) => {
Browser . open ( {
url : 'https://example.com' ,
} ) ;
} ) ;
Steps:
Click "open browser"
Minimize the browser
browserFinished has fired
It won't fire again when maximizing/minimizing or closing the browser
Screencast.from.2026-06-03.09-52-07.mp4
Expected Behavior
I expect browserFinished to tell me when the browser was closed
I open Auth0 in a browser (because of #7367 ). But I can't reliably know when the browser is done to remove the "loading" state (spinner) in my app.
Project Reproduction
https://github.com/Prinzhorn/capacitor-android-browser-close-event
Additional Information
No response
Capacitor Version
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 8.4.0
@capacitor/core: 8.4.0
@capacitor/android: 8.4.0
@capacitor/ios: 8.4.0
Installed Dependencies:
@capacitor/ios: not installed
@capacitor/core: 8.4.0
@capacitor/android: 8.4.0
@capacitor/cli: 8.4.0
[success] Android looking great! 👌
Other API Details
Platforms Affected
Current Behavior
For repro I used
npm init @capacitor/app@latestand then replaced index.html body withand
capacitor-welcome.jswithSteps:
browserFinishedhas firedScreencast.from.2026-06-03.09-52-07.mp4
Expected Behavior
I expect
browserFinishedto tell me when the browser was closedI open Auth0 in a browser (because of #7367). But I can't reliably know when the browser is done to remove the "loading" state (spinner) in my app.
Project Reproduction
https://github.com/Prinzhorn/capacitor-android-browser-close-event
Additional Information
No response