react-native-share / react-native-share

Social share, sending simple data to other apps.

Home Page:https://react-native-share.github.io/react-native-share

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sharing video to Instagram story works on iOS but not android

davidwinograd1 opened this issue · comments

Steps to reproduce

This is my code:

const shareToInstagramStories = async (bite) => {
    const shareOptions = {
      backgroundVideo: bite.url,
      type: 'video/mp4',
      social: Share.Social.INSTAGRAM_STORIES,
      appId: //appId here, 
      forceDialog: true,
      useInternalStorage: true,
    };

    Share.shareSingle(shareOptions)
      .then((res) => {
        console.log(res);
      })
      .catch((err) => {
        console.error(err);
      });
  };

Expected behavior

Should work on both iOS and Android

Actual behavior

Only works on iOS

Environment

  • React Native version: 0.68.7
  • React Native platform + platform version: All Android
  • Typescript version (if using typescript): 3.8+ required, what version is in your environment?

react-native-share

Version: npm version or "master"
9.4.1

Link to repo (highly encouraged)

https://github.com/

Funny.

I came here because it seems like Share.Social.INSTAGRAM_STORIES no longer works when I test on iOS (not tested on Android yet). Even if I provide a valid appId, Instagram displays a toast notification that says: "The app you shared from doesn't currently support sharing to Instagram."

It seems like the standard Share.Social.INSTAGRAM option takes users to a unified screen where the user can select if the media goes to a story or a reel or a message.

I was wondering if Share.Social.INSTAGRAM_STORIES was even needed any more.

Here's what Share.Social.INSTAGRAM looks like for me:

image

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and i will leave this open