ShekarMudaliyar / social_share

Flutter package to share images/videos/text on social media
https://pub.dev/packages/social_share
MIT License
108 stars 175 forks source link

Instagram option not showing up in Android #111

Open quseappdeveloper opened 2 years ago

quseappdeveloper commented 2 years ago

Instagram option not showing up in Android. It works fine for iOS. We do have instagram installed on the device that we are testing. This used to work before. Anyone facing this issue?

MrPlancton commented 2 years ago

I have similar issue testing on Android device sharing to ig stories..

MrPlancton commented 2 years ago

Solved adding targetSdkVersion 31 and this queries in manifest: `

`

kekko7072 commented 2 years ago

+1

JakubBatel commented 10 months ago

Solved adding targetSdkVersion 31 and this queries in manifest: <queries> <package android:name="com.instagram.android" /> </queries>

This worked for me and I think it should be part of the documentation. Anyway I would like to extend the answer and save you one Google search the <queries> ... </queries> tag should be child of <manifest> tag. Also if someone is looking for a WhatsApp package name then it is com.whatsapp

E.g.

<manifest>
  <application>...</application>
  <queries>
    <package android:name="com.instagram.android" />
    <package android:name="com.whatsapp" />
   </queries>
</manifest>
odedsolutions commented 8 months ago

Adding more required queries in my case (facebook and twitter):

<package android:name="com.instagram.android" />
<package android:name="com.facebook.katana" />
<package android:name="com.whatsapp" />
<package android:name="com.twitter.android" />