Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Flutter social_share `checkInstalledAppsForShare()` returns false for apps that are installed

I copied an example from https://pub.dev/packages/social_share/example.

I have installed Instagram on my emulator, but still this piece of code:

 SocialShare.checkInstalledAppsForShare().then((data) {
                      print(data.toString());
                    });

returns {sms: false, instagram: false, facebook: false, twitter: false, whatsapp: false, telegram: false}

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Is it an emulator problem?

>Solution :

Add In AndroidManifest.xml

<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading