cordova-plugin-openwith-ios icon indicating copy to clipboard operation
cordova-plugin-openwith-ios copied to clipboard

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

Open Anuj-logiciel opened this issue 7 years ago • 6 comments

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 avatar May 05 '18 10:05 Anuj-logiciel

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".

EternallLight avatar May 05 '18 17:05 EternallLight

@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 avatar May 07 '18 10:05 Anuj-logiciel

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.

Konkrad avatar Jun 28 '18 12:06 Konkrad

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

vova1987 avatar Jun 16 '19 19:06 vova1987

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

jj449 avatar Jan 30 '20 08:01 jj449

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.

medericdegoy avatar Mar 25 '20 11:03 medericdegoy