I am trying to build an app in ionic framework.
I am trying to build this functionality like when i click on photo from gallery and hit share A share pan will open
Set the UIFileSharingEnabled
to YES
. You missed to set it in plist.
Hope this will resolve your issue.
Several things are missing/wrong :
This is an example that works to register your application. It's tested and works for all types of data. Work your way down from there to target only public.jpeg :
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFiles</key>
<array>
<string>Icon-22x29.png</string>
<string>Icon-44x58.png</string>
<string>Icon-64x64.png</string>
<string>Icon-320x320.png</string>
</array>
<key>CFBundleTypeName</key>
<string>My App</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.data</string>
</array>
</dict>
</array>