Search code examples
ioscordovaionic-frameworkphonegap

iOS only, share image from gallery to my Ionic/Cordova/Phonegap application


I am trying to share image from gallery and want to get it in my ionic application. I have tried a lot but still not understanding this.

I have tried following plugins:

https://github.com/protonet/cordova-plugin-share-extension-helper

https://github.com/markmarijnissen/cordova-plugin-share

How to share content/data through other apps in an iOS app like we do in an Android app with Intent.ACTION_SEND?

http://www.technetexperts.com/mobile/share-extension-in-ios-application-overview-with-example/

https://github.com/LokeshPatel/iOS-Phonegap-app-share-extension


Solution

  • After some detailed analysis, this is what I could conclude:

    In Android, you could just get your application added in the share list using cordova-plugin-intent as described in this SO Post. You can also achieve this by adding intent filter in the activity as described here

    In iOS, this is bit tricky as there are no straight forward plugins or readymade solution available to achieve this. But the best possible link i could get related to adding app in iOS share menu is getting listed in share menu The link includes apple documentation to do this and also some tweaking in Info.plist to achieve this.