EddyVerbruggen / SocialSharing-PhoneGap-Plugin

👨‍❤️‍💋‍👨 Cordova plugin to share text, a file (image/PDF/..), or a URL (or all three) via the native sharing widget
MIT License
1.78k stars 909 forks source link

ShareVia package name for wechat and whatsapp is not working in IOS 11 and higher version. Wechat Package name for ios "com.tencent.xin.sharetimeline" and whatsapp package name is "net.whatsapp.WhatsApp.ShareExtension" #977

Open Elangovan22 opened 6 years ago

Elangovan22 commented 6 years ago

Hi , I am trying to share content using sharevia package name. its working in lower versions of IOS 11. while checking cansharevia package name its even working for IOS 11, and later version to. Can anyone help me to sort it out

EddyVerbruggen commented 5 years ago

Have you whitelisted those packages in the plist (as per the readme)?

chase-wen-hs commented 5 years ago

Hi, Same issue with Wechat&Weibo when use shareVia/canShareVia function. I have added the following to the whitelist in .plist

<key>LSApplicationQueriesSchemes</key>
    <array>
      <string>wechat</string>
      <string>weixin</string>
      <string>sinaweibohd</string>
      <string>sinaweibo</string>
      <string>sinaweibosso</string>
      <string>weibosdk</string>
      <string>weibosdk2.5</string>
    </array>

but no matter what package name I tried in shareVia/canShareVia function, the response always gives cancelled (Sharevia) OR not available (canShareVia) error. I was wondering if anyone successfully open Wechat/Weibo using shareVia function at all? If so, it will be appreciated to share what package name you used. Thanks