Expensify / react-native-share-menu

A module for React Native that adds your app to the share menu of the device
MIT License
656 stars 240 forks source link

App disappears from the share list iOS 15.0 #179

Open deyanskiq opened 2 years ago

deyanskiq commented 2 years ago

App disappears on the second attempt to open the share menu. Noticed that it happens only on iOS >=15.0 and to URLs with query params.

reproducing on iOS v15.3:

https://user-images.githubusercontent.com/11162576/163997318-e83998a5-11dc-4a15-b5ec-ccd259cfa983.mp4

not reproducing on iOS 14.8:

https://user-images.githubusercontent.com/11162576/163997267-9bb27260-0199-43c2-a7fb-cb4f3955eaad.mp4

NTJ3 commented 2 years ago

@deyanskiq You need to add your app to the share menu list by clicking more after opening the share menu.

deyanskiq commented 2 years ago

@NTJ3 Unfortunately I've already added the app to the Favourites list. Noticed that applications like 'Instagram' and 'Reminders' (iOS native app) disappear as well. So I suppose it can be an iOS 15 specific issue.

b4lk0n commented 2 years ago

I'm facing the same issue. The app disappears from the share sheet on the second open:

  1. Open a website in Safari
  2. Tap on share icon
  3. App is present, but do nothing; just dismiss the share sheet
  4. Tap on share icon again
  5. App is missing

Reloading a webpage returns the app to the share sheet. But after the steps above, it disappears again.

b4lk0n commented 2 years ago

reproducible on iOS 15.5 and 16

o-baranova commented 2 years ago

Reproducible only on iOS 15.5. Does anyone know what is the reason?

thianphat commented 10 months ago

Also facing this issue on iOS 17.2, same steps as @b4lk0n for my app running iOS 17.2 and Expo 49.

What's also curious, and maybe unrelated, but I've noticed that this also happens to Instagram, Twitter (X), and Snapchat apps when sharing, so it could be a Safari thing, and not related to this package, not sure?

Here's a video without my app installed on the physical test device (iPhone 11 running iOS 17.2).

  1. Close and re-open Safari to reset share sheet
  2. Tap share on X, cancel share
  3. Tap share on Snapchat, cancel share
  4. Tap share on Instagram, cancel share
  5. Above apps go missing

X nor Snapchat go missing until Instagram is shared to. And Instagram will go missing if you share to it without attempting to share to X or Snapchat. For the case of my app, it goes missing when sharing the first and sometimes maybe second attempt. Here is the link I am testing with: https://www.patagonia.com/product/womens-down-with-it-parka/28442.html?dwvar_28442_color=OBPL&cgid=womens-jackets-vests

See video below:

https://github.com/Expensify/react-native-share-menu/assets/23284914/3bebd918-77a3-4ff3-a6df-4f071aa67c85