Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show my cordova app in IOS share menu?

We have an existing Cordova iOS App for which we need an iOS share extension which will allow Users to to share files from other apps (like Photos, Pages, Numbers, Keynote, etc) with our App (i.e. Export file from Pages to our App).

We need the following delivered:

  • Prototype / Sample iOS Cordova App
  • with a share extension setup up for jpg, png, video, pdf and office (xls, xlsx, doc, docx, ppt, pptx) files
  • Extension to either open the Cordova App directly OR to open the Cordova App as a webview inside the share widget
  • Cordova App must receive parameters about the shared file (filename, path, type, filesize) from extension - the handling of the file afterwards will be done by us.
  • Documentation on how to implement this functionality (share extension) in our existing Cordova App (steps necessary to perform in Xcode etc)
like image 837
Harish Mahajan Avatar asked Jun 30 '17 09:06

Harish Mahajan


People also ask

Does Apple allow Cordova apps?

To submit apps to the Apple App Store℠ requires the latest versions of the Apple tools. You can test many of the Cordova features using the iOS simulator installed with the iOS SDK and Xcode, but you need an actual device to fully test all of the app's device features before submitting to the App Store.

What browser does Cordova use on iOS?

cordova apps use the UIWebView component to load the apps, it's based on safari ( WebKit2 ) but it doesn't include the Nitro javascript engine (the one safari app uses), so your cordova apps will be slower than safari app executing the same code.


1 Answers

There is a cross-platform cordova plugin (iOS and Android) that achieves that: https://github.com/j3k0/cordova-plugin-openwith

like image 200
jeko Avatar answered Sep 19 '22 23:09

jeko