Pages: [1]   Go Down
  Print  
Author Topic: iOS 8 document provider extensions: Explained  (Read 605 times)
HCK
Global Moderator
Hero Member
*****
Posts: 79425



« on: July 23, 2014, 09:00:29 am »

iOS 8 document provider extensions: Explained

<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p><a href='http://www.imore.com/ios-8-document-provider-extensions-explained' title="iOS 8 document provider extensions: Explained"><img src='http://www.imore.com/sites/imore.com/files/styles/large/public/field/image/2014/07/wwdc2014_document_provider_extensions_0.jpg?itok=-wANPipo' />[/url]</p> <p>Document provider extensions in <a href="http://www.imore.com/ios-8" title="iOS 8 help, how-to, news, reviews">iOS 8[/url] are part of the new Extensibility system and allow the features from Document Picker and associated file handling to go beyond iCloud Drive to encompass enterprise storage and popular online services like DropBox, Box, OneDrive, Google Drive, and more. Because it ties into the same system and works the same way, as long as they implement the extension, Apple's making it just as easy to use anyone else's online storage as it is to use iCloud Drive. So, how does it work?<!--break--></p> <h2>From "Open in..." to open</h2> <p>Traditionally there have been two ways in iOS to work on files contained in online storage providers: Download you're provider's app, find your file, and use "Open in..." to push a copy out to the app you want to use, or hope your provider's service was supported by the developer who made the app you want to use.</p> <p>Apple discontinued their old iDisk app when they switched from MobileMe to <a href="http://www.imore.com/icloud" title="iCloud backup, photos, setup, and how-to">iCloud[/url] a couple years ago, but almost all of the big online storage providers made apps available, including Dropbox, Box, Microsoft's OneDrive, Google's Drive, and more. Dropbox, who made an application programming interface (API) available to developers early on, enjoyed some of the widest support.</p> <p>But it wasn't every app everyone wanted to use, and there was no clear, clean way to round-trip files and avoid amassing duplicates.</p> <p>Until now.</p> <h2>How document provider extensions work</h2> <p>Document provider extensions hook into the same Document Picker interface that exposes Apple's iCloud Drive and largely work the same way as iCloud Drive. (See iCloud Drive and Document Picker for iOS 8: Explained.</p> <p>When you install an iOS 8 app that supports document provider extensions, the associated service will be added to the Document Picker options list. So, for example, you open a text editing app and then tap to create a new file or open an existing one, the Document Picker interface would come up and, if you had OneDrive for iOS 8 installed, you'd see OneDrive as an option there right alongside iCloud Drive.</p> <p>An enterprise could even disable iCloud Drive, if they didn't want employees using it on their work devices, and provide their own, corporate storage services right in the Document Picker instead.</p> <h2>Document provider extensions for developers</h2> <p>For developers, document providers are also very, very similar to iCloud Drive. For the app hosting the Document Picker, document provider extensions and iCloud Drive appear the same.</p> <p>Document provider extensions become selectable options in the document picker. In addition to the standard document picker mode — the one that lets people create, open, move, etc. files — document picker extensions also have a file provider. There's no interface for it, it simply deals with providing the files, keeping things current, and saving bookmarks. For all of this, file coordination is a must to avoid read/write conflicts and potential data corruption and loss.</p> <p>Because enterprise IT departments can turn off iCloud Drive support, Apple has created additional ways for developers to create bookmarks to preserve state for document provider extensions. The file provider returns and resolves an identifier.</p> <p>Once a file is changed, iOS will mark it as such for sync purposes.</p> <p>All together, it looks like Apple has made it easy to integrate with Document Picker, and hopefully online storage providers create their extensions and developers implement the picker, so all of us can benefit.</p> <h2>Security and Privacy for document picker extensions</h2> <p>Like with iCloud Drive, by default, no app can access the container of another app. Getting around that requires an explicit action like opening Document Picker and tapping an external document to indicate you want to access it outside its container. Document Picker runs "out-of-process" for that reason — so it can see all apps in all public containers.</p> <p>When you're in an app and call up the Document Picker, then choose a document provider extension, it's Document Picker and not the host app that calls up the provider extensions interface (view controller). Likewise, it's the Document Picker system that performs actions like open on the files and moves them to the host app so you can work on them. All access is controlled by an isolation layer.</p> <h2>Bottom Line</h2> <p>It looks like Apple has given document provider extensions as much access and functionality as their own iCloud Drive, and that's remarkable when you consider the long history of iOS. And like iCloud Drive, document provider extensions make for a quantum leap forward when it comes to file handling on iPhone and iPad. In fact, since there's no iCloud Drive app, but document providers already have apps, they arguably can serve some workflows even better by providing a centralized repository where all files can be browsed, accessed, and organized.</p> <p>Hopefully in the future we'll see document picker functionality pushed out even further in iOS, for example into Mail or Calendar for attachment handling. That's the best thing about Extensibility — as much as it gives us now, with both Apple and developers involved, there's sure to be even more to come.</p> <p>Are you exited for document provider extensions in <a href="http://www.imore.com/ios-8" title="iOS 8 help, how-to, news, reviews">iOS 8[/url]? Which online services do you really want to see integrated and with which apps?</p> </div></div></div><div id="comment-wrapper-nid-25869"></div><img width='1' height='1' src='http://tipb.com.feedsportal.com/c/33998/f/616881/s/3cc0a1c5/sc/4/mf.gif' border='0'/><br clear='all'/>

<a href="http://da.feedsportal.com/r/199120884228/u/49/f/616881/c/33998/s/3cc0a1c5/sc/4/rc/1/rc.htm" rel="nofollow"><img src="http://da.feedsportal.com/r/199120884228/u/49/f/616881/c/33998/s/3cc0a1c5/sc/4/rc/1/rc.img" border="0"/>[/url]
<a href="http://da.feedsportal.com/r/199120884228/u/49/f/616881/c/33998/s/3cc0a1c5/sc/4/rc/2/rc.htm" rel="nofollow"><img src="http://da.feedsportal.com/r/199120884228/u/49/f/616881/c/33998/s/3cc0a1c5/sc/4/rc/2/rc.img" border="0"/>[/url]
<a href="http://da.feedsportal.com/r/199120884228/u/49/f/616881/c/33998/s/3cc0a1c5/sc/4/rc/3/rc.htm" rel="nofollow"><img src="http://da.feedsportal.com/r/199120884228/u/49/f/616881/c/33998/s/3cc0a1c5/sc/4/rc/3/rc.img" border="0"/>[/url]

<img src="[url]http://da.feedsportal.com/r/199120884228/u/49/f/616881/c/33998/s/3cc0a1c5/sc/4/a2.img" border="0"/>[/url]<img width="1" height="1" src="http://pi.feedsportal.com/r/199120884228/u/49/f/616881/c/33998/s/3cc0a1c5/sc/4/a2t.img" border="0"/><img src="http://feeds.feedburner.com/~r/TheIphoneBlog/~4/N6uva3tLPFg" height="1" width="1"/>

Source: iOS 8 document provider extensions: Explained
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: