alinz / react-native-share-extension

react-native as an engine to drive share extension
MIT License
762 stars 396 forks source link

Share Extension OpenUrl not working #126

Open theone3nu opened 5 years ago

theone3nu commented 5 years ago

I have followed this https://github.com/alinz/react-native-share-extension#open-container-app When i click on the share extension in ios photo gallery myapp is not opening at all.

ShareExtension.openURL('myapp://');

"react-native": "0.55.2", Here is the screenshot of warning image

Please help

theone3nu commented 5 years ago

As soon as ShareExtension.openURL gets called it is going to catch block and here is the error description.

screen shot 2018-11-22 at 7 17 54 pm
arribbar commented 5 years ago

You should take a look at the Linking part, to be sure it is well implemented. Documentation is here : https://facebook.github.io/react-native/docs/linking

theone3nu commented 5 years ago

I have implemented deeplinking already. I tried with Linking.openURL('myapp://'). It says unable to open url myapp://. But when i called the same Linking.openURL('myapp://') from the parent app It is opening the app. Also when i am trying to call myapp from browser window.open('myapp://') it is opening myapp. Only problem is i am unable to navigate from the share.ios component

theone3nu commented 5 years ago

@arribbar Just saw that latest code is not up to date in npm

https://github.com/alinz/react-native-share-extension/issues/127#issue-383560862

Thats the reason ShareExtension.openURL is throwing error. Can admin upload the latest code into repo. The current version is 1.2.1

ajith-ab commented 4 years ago

use react-native-file-share-intent

kumbhar-ketan commented 4 years ago

Try to use Linking. ShareExtension.openURL is working in IOS but not in android so you can use Linking.

jorgegvallejo commented 3 years ago

Try to use Linking. ShareExtension.openURL is working in IOS but not in android so you can use Linking.

Hey this is old, but what did you mean by this? (thanks btw)