bug: Share plugin seems to ignore instagram
Bug Report
Capacitor Version
Latest Dependencies:
@capacitor/cli: 2.4.5 @capacitor/core: 2.4.5 @capacitor/android: 2.4.5 @capacitor/electron: 2.4.5 @capacitor/ios: 2.4.5
Installed Dependencies:
@capacitor/cli 2.3.0 @capacitor/core 2.4.3 @capacitor/android 2.4.5 @capacitor/ios 2.4.5 @capacitor/electron not installed
[success] Android looking great! 👌 Found 21 Capacitor plugins for ios: @capacitor-community/firebase-analytics (0.2.0) @ionic-enterprise/auth (3.3.1) @ionic-enterprise/identity-vault (4.2.7) @ionic-enterprise/offline-storage (2.0.2) cordova-plugin-advanced-http (3.1.0) cordova-plugin-app-version (0.1.9) cordova-plugin-badge (0.8.8) cordova-plugin-camera (4.1.0) cordova-plugin-device (2.0.3) cordova-plugin-file (6.0.2) cordova-plugin-file-opener2 (3.0.5) cordova-plugin-file-transfer (1.7.1) cordova-plugin-inappbrowser (4.1.0) cordova-plugin-iroot (2.1.0) cordova-plugin-network-information (2.0.2) cordova-plugin-pincheck (0.0.6) cordova-plugin-streaming-media (2.3.0) cordova-plugin-whitelist (1.3.4) cordova-plugin-x-socialsharing (6.0.2) es6-promise-plugin (4.2.2) cordova-plugin-calendar (5.1.5) [success] iOS looking great! 👌
Platform(s)
- IOS (Version 14)
- Android (Version 8)
Current Behavior
I need to use the Share plugin to share some stuff through social media.
I tried with the method from the docs:
import { Plugins } from '@capacitor/core'; const { Share } = Plugins;
...
async share() { const shareRet = await Share.share({ title: 'See cool stuff', text: 'Really awesome thing you need to see right meow', url: 'http://ionicframework.com/', dialogTitle: 'Share with buddies' }); }
When I call share() from a template, the native modal is correctly opened and it contains most social media apps on the device, except instagram, which is the issue because I need it.
Expected Behavior
Instagram should be present in the options
Code Reproduction
import { Plugins } from '@capacitor/core'; const { Share } = Plugins;
...
async share() { const shareRet = await Share.share({ title: 'See cool stuff', text: 'Really awesome thing you need to see right meow', url: 'http://ionicframework.com/', dialogTitle: 'Share with buddies' }); }
Instagram only appears if you share an image.
In share plugin you can share images by using the url param, can be a remote or local image, but to be shared they need to be UIImage files, not urls (what it does at the moment), so that should be changed on the plugin to properly support Instagram sharing.
What's the status on this? Is it being fixed?
Instagram app now allows to share links (only as direct messages) and post images shared from share plugin if they are a local file url. No code changes are required for Share plugin.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out.