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

iOS App [OpenWithPlugin.m][checkForFileToShare] Nothing to share . #4

Open
Anuj-logiciel opened this issue May 5, 2018 · 6 comments

Comments

@Anuj-logiciel
Copy link

Anuj-logiciel commented May 5, 2018

After Installing this plugin when I run my app, I get nothing only splashscreen of my app. After spending some time for finding the issue I got Unexpected use of reserved word 'let' in 'openwith.js'.
Could anybody let me know whats wrong I am doing here or to do ???

img_0934

@Anuj-logiciel Anuj-logiciel changed the title Unexpected use of reserved word 'let' in 'openwith.js' iOS App Not starting. May 5, 2018
@EternallLight
Copy link
Owner

Which version of iOS are you trying on?
If it is that old that its Safari does not support ES6 syntax, try to convert the openwith.js with babel or symply replace all "let" with "var".

@Anuj-logiciel
Copy link
Author

Anuj-logiciel commented May 7, 2018

@EternallLight I'm able to open my app on newer ios version (11.3) when sharing files from other apps, My app opens fine but my handler code never gets executed and xcode logs show 'Nothing to share' as in attached screenshot.

screen shot 2018 05 07 at 6 10 08 am

@Anuj-logiciel Anuj-logiciel changed the title iOS App Not starting. iOS App [OpenWithPlugin.m][checkForFileToShare] Nothing to share . May 9, 2018
@Konkrad
Copy link

Konkrad commented Jun 28, 2018

I had the same problem and for me the problem was that the group ids did not match. When you give the Group Ids under Target --> Capabilities make sure that this group matches the one defined under ShareViewController.h in the constant SHAREEXT_GROUP_IDENTIFIER.

@vova1987
Copy link

@Konkrad Saved my day! I don't understand why wasn't the value applied as part of the install hook...

@jj449
Copy link

jj449 commented Jan 30, 2020

@Konkrad you are right ! that fix problem , thank you ! u the hero, man ~

@medericdegoy
Copy link

That's it ! you have to add a group in Xcode (signing & capabilities, + capability, group, in both targets), give it a name, and change the aforementioned variable.

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

No branches or pull requests

6 participants