Current Behavior
When calling Camera.takePhoto(), on some phones, as the Camera is a new activity, the webView is put in background. When the webView is restored, the appRestoredResult listener is not called anymore, making it impossible to get result from the Camera.
Expected Behavior
appRestoredResult listener should be called when the webview is going inactive and then restored.
Reproduction
https://github.com/ionic-team/capacitor-camera/tree/main/example-app
Screenshots / Media
No response
Environment Details
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 8.3.1
@capacitor/core: 8.3.1
@capacitor/android: 8.3.1
@capacitor/ios: 8.3.1
Installed Dependencies:
@capacitor/core: 8.3.1
@capacitor/android: 8.3.1
@capacitor/cli: 8.3.1
@capacitor/ios: 8.3.1
npm --version : 11.6.2
node --version: v24.12.0
Versions Affected
8.2.0
Platforms Affected
Notes / Comments
No response
Current Behavior
When calling
Camera.takePhoto(), on some phones, as the Camera is a new activity, the webView is put in background. When the webView is restored, theappRestoredResultlistener is not called anymore, making it impossible to get result from the Camera.Expected Behavior
appRestoredResultlistener should be called when the webview is going inactive and then restored.Reproduction
https://github.com/ionic-team/capacitor-camera/tree/main/example-app
Screenshots / Media
No response
Environment Details
💊 Capacitor Doctor 💊 Latest Dependencies: @capacitor/cli: 8.3.1 @capacitor/core: 8.3.1 @capacitor/android: 8.3.1 @capacitor/ios: 8.3.1 Installed Dependencies: @capacitor/core: 8.3.1 @capacitor/android: 8.3.1 @capacitor/cli: 8.3.1 @capacitor/ios: 8.3.1 npm --version : 11.6.2 node --version: v24.12.0Versions Affected
8.2.0
Platforms Affected
Notes / Comments
No response