Skip to content

Plugin not working on iOS if the app is removed from background #101

@eternalsayed

Description

@eternalsayed

Describe the bug
If the app is removed from the background on iOS, sharing from any app (gallery/WhatsApp, etc.) doesn't trigger the plugin. It works fine if the app is in background.
I have the event-listener in my main.js

To Reproduce
Steps to reproduce the behavior:

  1. Kill the app and remove it from the background
  2. Try to share from gallery or anywhere else
  3. App will open but event won't be trigerred

Expected behavior
Event should trigger, just like it does when the app was in background

Screenshots

Image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: iPhone 16e
  • OS: iOS
  • Version 18.4.1

Additional context
Here's the event listener in my main.js:

window.addEventListener("sendIntentReceived", () => {
  alert("sendIntentReceived");
  SendIntent.checkSendIntentReceived().then((result) => {
    alert("sendIntentReceived result: " + JSON.stringify(result));
  });
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions