-
Notifications
You must be signed in to change notification settings - Fork 43
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 fixes #2
base: master
Are you sure you want to change the base?
iOS fixes #2
Conversation
Is there a reason not to merge this? |
I should also add that our project no longer uses this plugin or Cordova, so if any changes are needed to this PR, someone else will have to do it. But it fixes some pretty big bugs though so it'd be nice to get it merged in for everyone else! |
@MrXyfir what did you end up using instead of cordova? Just out of curiosity since I'm pretty frustrated from the state of the cordova plugins and their maintenance... |
@HarelM React Native! Cordova is extremely frustrating to work with and every day it gets harder due to lack of maintenance. React Native isn't perfect, and occasionally dealing with third-party plugins like in Cordova can be frustrating, but it's a million times better than Cordova and I think the best out of all the current alternatives. |
I see, thanks for the info! The problem is that I need to support both a website, ios and android apps (there's just me) so I don't see how I can do it with react native, or even flutter (I might be wrong but haven't seen any evidence of these platform support web development) and still keep a single code base. I haven't seen a solution for a single code base for both web and mobile besides cordova, maybe xamirine and blazor but they are still young... |
@HarelM Yeah, fortunately for us our requirements changed and we no longer needed to support a web app so it made the switch easier. That being said, react-native-web is a great project that lets you target the web just as you would iOS or Android in React Native! You would definitely need some platform-specific code for certain things, even sometimes iOS and Android need different code in React Native, although the majority of stuff works on both right out of the box! Depending on your requirements, Expo might make things a lot easier in React Native, but it's more limited in its features. An interesting idea for you to look into is using react-native-webview so you can embed a browser into your app to load parts of your website and then you can inject JavaScript code into the web page and listen for messages so in this way your website could communicate with React Native and you could run any native code that you need while keeping most of the interface and functionality on your website. |
Thanks for the super detailed response! It was a pleasure reading it and learning things I have missed. |
I'm glad I could help! I wish you the best of luck with your app, and if you ever have any questions I'd be happy to try and answer them. |
Thanks! One last question, why did you decide to use/send a PR to this plugin and not the original fork (https://github.com/j3k0/cordova-plugin-openwith)? |
I tried almost every single plugin and fork that was available and this was the only one I could get to work... |
Fixes a few issues with the sharing process that was preventing sharing from numerous sources, including but not limited to:
Certain types weren't being handled correctly and images weren't being saved properly.