Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Share Plugin: Can't share while sharing is in progress #2322

Open
FabianClemenz opened this issue Feb 26, 2025 · 0 comments
Open

[BUG] Share Plugin: Can't share while sharing is in progress #2322

FabianClemenz opened this issue Feb 26, 2025 · 0 comments

Comments

@FabianClemenz
Copy link

FabianClemenz commented Feb 26, 2025

Bug Report

Plugin(s)

@capacitor/share
@cap-go/inappbrowser

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 7.0.1
  @capacitor/core: 7.0.1
  @capacitor/android: 7.0.1
  @capacitor/ios: 7.0.1

Installed Dependencies:

  @capacitor/cli: 7.0.1
  @capacitor/android: 7.0.1
  @capacitor/core: 7.0.1
  @capacitor/ios: 7.0.1

[success] iOS looking great! 👌
[success] Android looking great! 👌

Platform(s)

iOS

Current Behavior

  • Opened a WebView via InAppBrowser
  • add Eventlistener for share intent
  • Eventlistener triggers share intent and the message displays (only on iOS - Android is working)

Expected Behavior

The share intent should be shown

Code Reproduction

Link to reproduction

simply add this some where in your code, so the WebView opens and adds the eventlistenere

InAppBrowser.openWebView({
  url: "https://google.de"
});

InAppBrowser.addListener("messageFromWebview", async (event) => {
  await Share.share(event.detail)
});

In the Browser console of the WebView make following request

window.mobileApp.postMessage({'detail': {'title': 'Test', 'text': 'Some Test Text', 'url': 'https://google.de'}})

Then the message should appear

@ionitron-bot ionitron-bot bot added the triage label Feb 26, 2025
@ionitron-bot ionitron-bot bot removed the triage label Feb 26, 2025
@FabianClemenz FabianClemenz changed the title Share Plugin: Can't share while sharing is in progress [BUG] Share Plugin: Can't share while sharing is in progress Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants