EternallLight / cordova-plugin-openwith-ios

A modified version of the Cordova iOS Share extension (cordova-plugin-openwith) by Jean-Christophe Hoelt for iOS. Supports receiving shared URLs, text and images as well as sharing several images at once.
https://web-mystery.com/
MIT License
28 stars 84 forks source link

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

Open Anuj-logiciel opened 6 years ago

Anuj-logiciel commented 6 years ago

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

EternallLight commented 6 years ago

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 commented 6 years ago

@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

Konkrad commented 6 years ago

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 commented 5 years ago

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

jj449 commented 4 years ago

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

medericdegoy commented 4 years ago

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.