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] @capacitor/share not working with telegram (at least iOS 18) #2275

Open
RayZik opened this issue Dec 10, 2024 · 0 comments
Open

[BUG] @capacitor/share not working with telegram (at least iOS 18) #2275

RayZik opened this issue Dec 10, 2024 · 0 comments

Comments

@RayZik
Copy link

RayZik commented Dec 10, 2024

Bug Report

Plugin(s)

"@capacitor/android": "6.2.0",
"@capacitor/core": "6.2.0",
"@capacitor/ios": "6.2.0",
"@capacitor/app": "6.0.2",
"@capacitor/share": "6.0.3",

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

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

Installed Dependencies:

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

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

Platform(s)

  • iOS

Current Behavior

I've added the share plugin to the ionic. Add this code

 await Share.share({
        title: t('poem.share.title'),
        text: t('poem.share.text', { name: item.name }),
        url: `https://...`,
        dialogTitle: t('poem.share.title')
 });

And when I try to share it to the Telegram it shows popup, I click on the Saved Messages to send it to, and it says "ok". When I open Saved Messages, I see nothing...No, my shared message. BUT the same behavior I see in another apps, for example, Litres has the same behavior. Maybe it is problem of iOS 17/18?
Also, I've tried to share it to WhatsApp/Slack and so on and it works as expected

Expected Behavior

When I share to telegram, it have to send message to telegram

Code Reproduction

Something like that -> https://github.com/RayZik/capacitor-share-issue
But you have to change bundleId and sing the App cuz xcode fail to build

Additional Context

> Cannot issue sandbox extension for URL:https://...
> 59638328 Plugin query method called
> Couldn't read values in CFPrefsPlistSource<0x3020d4b00> (Domain: com.apple.country.carrier_2, User: kCFPreferencesCurrentUser, ByHost: No, Container: /var/mobile/Library/CountryBundles/, Contents Need Refresh: Yes): accessing preferences outside an application's container requires user-preference-read or file-read-data sandbox access
> The request of a upload task should not contain a body or a body stream, use `upload(for:fromFile:)`, `upload(for:from:)`, or supply the body stream through the `urlSession(_:needNewBodyStreamForTask:)` delegate method.
> **Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 "Client not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false}**
@ionitron-bot ionitron-bot bot added the triage label Dec 10, 2024
@ionitron-bot ionitron-bot bot removed the triage label Dec 10, 2024
@RayZik RayZik changed the title @capacitor/share not working with telegram (at least iOS 18) [BUG] @capacitor/share not working with telegram (at least iOS 18) Dec 10, 2024
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