Skip to content

[Bug]: appRestoredResult is not called #53

@dsciamma

Description

@dsciamma

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

  • iOS
  • Android
  • Web

Notes / Comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions