expo-share getting error while sharing hyperlink (deeplink)

Please provide the following:

  1. SDK Version: “expo”: “^46.0.0”,
  2. Platforms(Android/iOS/web/all): IOS/Android
  3. Add the appropriate “Tag” based on what Expo library you have a question on: expo-sharing

i am trying to share link(deep link) using expo-sharing, at present sharing file is working but it
gives me error on sharing link with custom “scheme” eg: “myapp://detail/cjhqNmpzbDB5aWE/car”

<TouchableOpacity
  onPress={async () => {
    const isSharable = await Sharing.isAvailableAsync();

    if (isSharable) {
      await Sharing.shareAsync(
        "ekaa://detail/cjhqNmpzbDB5aWExOXZscg==/Luxurious Wooden"
      );
    }
  }}
>
  <Text>Share</Text>
</TouchableOpacity>

getting error on line:

await Sharing.shareAsync(
  "ekaa://detail/cjhqNmpzbDB5aWExOXZscg==/Luxurious Wooden"
);

error:

Possible Unhandled Promise Rejection (id: 11):
Error: You don't have access to provided file.
promiseMethodWrapper@http://192.168.1.78:19000/node_modules/expo/AppEntry.bundle?platform=ios&dev=true&hot=false:2485:45
@http://192.168.1.78:19000/node_modules/expo/AppEntry.bundle?platform=ios&dev=true&hot=false:93192:46
@http://192.168.1.78:19000/node_modules/expo/AppEntry.bundle?platform=ios&dev=true&hot=false:222066:51
generatorResume@[native code]

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.