Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share doesn't redirect to app (iOS) #157

Open
davidsalib opened this issue Oct 20, 2021 · 12 comments · May be fixed by #298
Open

Share doesn't redirect to app (iOS) #157

davidsalib opened this issue Oct 20, 2021 · 12 comments · May be fixed by #298

Comments

@davidsalib
Copy link

I've tried with both the default Share popup, and a custom popup.
In both cases, when I press "Post" or "Continue to App", the main app doesn't launch.

I verified that the HostAppBundleIdentifier and HostAppURLScheme are set properly in both the App and Share Extension Info.plist respectively.

Any ideas/advice is much appreciated!

@ghost
Copy link

ghost commented Oct 22, 2021

Same here. More instructions on this would be much appreciated.

@ghost
Copy link

ghost commented Oct 22, 2021

@davidsalib I noticed that on iOS for some types of files it does NOT launch the app at all. But when sharing an image for example it works. Did you manage to get it working with Android?

@kubik369
Copy link

kubik369 commented Nov 8, 2021

The instructions seem to be wrong and at least on iOS, the HostAppURLScheme requires the name to end with ://, e.g. if your app package is called myapp, then you need to use myapp://

@robbiedood
Copy link

@kubik369 Your solution works for me, thanks! BTW, do you know how could we directly share text to app without pressing "Post" or "Continue to App" in iOS ?

Hope to hear your expertise.

@kubik369
Copy link

@lukelu0520 Hi, you should be able to open the app immediately when the user selects it in the share menu, you don't need to wait for any press as far as I know :)

@robbiedood
Copy link

robbiedood commented Jan 12, 2022

@kubik369 Thanks for your reply:) I was wondering if you follow the example folder or the iOS instruction. Seems like there is discrepancy between them.

ps: Android works great, be able to open the app immediately when the user selects it in the share menu, but iOS has the issue.

@asadd-irfan
Copy link

asadd-irfan commented Sep 1, 2022

@kubik369 hi sir, kindly explain i am trying to send extraData in my app from share by using continueInApp in IOS but i can't receive that data in my app. can u please help. @lukelu0520 @gilsonviana-modus @davidsalib

ShareMenuReactView.data().then(item => {
     ShareMenuReactView.continueInApp({
       continueInApp: true,
       data: item.data[0].data,
       mimeType: item.data[0].mimeType,
     });
   
   });

@lac96it
Copy link

lac96it commented Nov 11, 2022

@asadd-irfan same problem. Are you have solution for this?

@roman-myshchyshyn
Copy link

@kubik369 have you solved it for you, to skip dialog on iOS ?

@kubik369
Copy link

kubik369 commented May 5, 2023

@roman-myshchyshyn I wasn't able to get rid of the modal popping up for a split second (although I think it would be possible with some objective C/Swift skills). We have it currently set up so that continueInApp gets called immediately and that goes into the app :)

@teja2495
Copy link

@kubik369 Can you please share the steps on how you did that? Thanks!

@legolasbo legolasbo linked a pull request Dec 29, 2023 that will close this issue
@walshie4
Copy link

@teja2495 In case you still need it you can call ShareMenuReactView.continueInApp(); inside a useEffect with no dependencies so it happens on first render

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants