Doc Picker Plugin

This plugin allows you to import and export to icloud and 3rd party apps.

Platforms:

iOS 8.0+

Setup:

Go to your apple developer account, go to certificates and profiles, go to iCloud containers, create a contain with the + plus, then go to app ids, click the id you are using and edit, make sure include cloud kit support is enabled, click edit, check the iCloud container you just made, continue and assign. Then go to your development providing profile, click edit, click regenerate, download, and install the new profile.

Functions:

docPicker.import(documentTypes, listener)

documentTypes(array of strings) array of uniform type identifiers example ("public.text", "public.image")

listener(function) event.status can be "document picked", "documents picked", or "picker cancelled". event.url is returned "document picked"(iOS 8-10), event.urls returns array of paths to files (iOS 11+)

docPicker.export(exportPath, listener)

exportPath (path) export file url(system.pathForFile)

listener(function) event.status can be "picker cancelled", "documents picked", or "document picked". event.url is returned "document picked"(iOS 8-10), event.urls returns array of paths to files (iOS 11+)

Build Settings:

Helpful Links:

Example

Support

Get Plugin