ionic-team / ionic-team/capacitor-camera

[Bug]: appRestoredResult is not called

Open
#53 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4
Forks
1
Avg merge
2d 1h
Merged PRs (30d)
2

Description

### 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

```Shell
💊 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

- [ ] iOS
- [x] Android
- [ ] Web

### Notes / Comments

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.