Pages: [1]   Go Down
  Print  
Author Topic: Custom keyboards in iOS 8: Explained  (Read 561 times)
HCK
Global Moderator
Hero Member
*****
Posts: 79425



« on: July 09, 2014, 09:00:37 am »

Custom keyboards in iOS 8: 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/custom-keyboards-ios-8-explained' title="Custom keyboards in iOS 8: Explained"><img src='http://www.imore.com/sites/imore.com/files/styles/large/public/field/image/2014/06/wwdc_2014_quickreply_third_party.jpeg?itok=Idf7TjYK' />[/url]</p> <p>Custom keyboard extensions, part of <a href="http://www.imore.com/ios-8" title="iOS 8 help, how-to, news, reviews">iOS 8[/url]'s new Extensibility feature, allow developers to almost completely replace the default, system-wide iOS keyboard with ones of their own devising. (That's in addition to Apple's own, new QuickType predictive keyboard.) Not only does that include favorites from other platforms, like Swype or SwiftKey, but it opens the door to ones that offer new languages, novel input methods, special options, and more. So, how do the new custom keyboard extensions work?<!--break--></p> <h2>From in app to out</h2> <p>For a while now Apple has let developers create and deploy custom keyboards, but those keyboards could only exist within their own apps. For example, Apple itself created and deployed a custom, spread-sheet optimized keyboard for Numbers.</p> <p>VNC and Remote Desktop apps have used custom keyboards that include OS X or Windows-specific modifier keys. Social network apps have added rows to the default keyboard that include @mention, #hashtag, and even camera access characters above and beyond those in the default keyboard type layouts. SwiftKey and other third-party keyboard companies have even created note-taking apps just to make their custom keyboards available on iOS within those specific apps.</p> <p>Now, however, custom keyboards can break free of their app jails and be used system-wide, in every app, and for almost anything.</p> <h2>How custom keyboards work</h2> <p><a href='http://www.imore.com/custom-keyboards-ios-8-explained' title="Custom keyboards in iOS 8: Explained"><img src='http://www.imore.com/sites/imore.com/files/styles/large/public/field/image/2014/06/wwdc_2014_quickreply_third_party_permission.jpeg?itok=DyiG-INv' />[/url]</p> <p>Even though custom keyboards are designed to work throughout iOS, they still have to be contained in an app. So, for example, to install SwiftKey on your iPhone or iPad, you'll have to download the SwiftKey app. The SwiftKey app's custom keyboard extension will then make itself available system-wide.</p> <p>The next time the default keyboard appears, you'll be able to tap the globe (keyboard change) button, select the custom keyboard, and start typing with it.</p> <p>There are still some lingering questions when it comes to implementation. For example, if you install the Swype app to get the Swype keyboard, what would the app itself do when you launch it? If the Swype app is deleted, the custom keyboard extension gets deleted with it, so would there be a warning provided to make sure people know and understand that, especially if they haven't looked at the app in weeks or months and forgotten why it exists?</p> <p>Download/delete/re-download is a simple process understood my hundreds of millions of iPhone and iPad customers. Extensibility offers new functionality beyond that of the traditional app. Somewhere, somehow, both Apple's procedures and our understandings are going to have to grow and mature.</p> <h2>Custom keyboard limitations</h2> <p>While custom keyboards can, for the first time, exist beyond the confines of their own apps, there are still many limitations placed on them. Some of these are philosophical — Apple has strong opinions on security and privacy. Others may be technical.</p> <p>To start with, by default custom keyboards are restricted to the local device. They can't access the internet without explicit permissions. They also can't be used in secure text fields, like those for passwords. More on that in the security and privacy section.</p> <p>Moreover, custom keyboards don't have access to the built-in keyboard toggles in Settings either, but a custom set of settings can be created just as they can for any other type of app. They also don't have access to the phone system (phone pad), which adhere to a strict set of input characters mandated by the carriers.</p> <p>In all of those cases, the default iOS 8 keyboard will replace the custom keyboard, and then return to it when eligable input fields become available.</p> <p>Custom keyboards also can't be used to select text or move the input position around. So no PC-style arrow key and cursor simulator keyboards. That kind of functionality is currently only available for the app hosting the keyboard. Likewise, the keyboard can't project its own editing commands, like copy/paste into an app, nor can it currently draw above the top row of the keyboard the way the default one does.</p> <p>Remember, this is Extensibility 1.0, and doubtless custom keyboard extensions, like everything else, will continue to evolve over future versions of iOS.</p> <h2>Developing custom keyboards</h2> <p>Apple intends for custom keyboards to offer something that's above and beyond what Apple's own keyboard provides, and is useful system-wide, not simply applicable to its own, specific app. That includes things like languages Apple doesn't currently support, and input methods and prediction system different from the ones used by Apple's QuickType.</p> <p>They can work via taps, swipes, gestures, and anything else supported by multitouch, but they have to work the way people have come to expect. Input has to be taken and output has to be delivered. And they have to not only be functional but feel lively and responsive.</p> <p>Custom keyboards also have to let people switch to and away from them using something akin to the 'globe' button Apple provides for switching to and away from, or cycling through, the built-in emoji keyboard, for example.</p> <p>Apple also strongly suggest they provide autocorrection, predictive suggestions, and spell checking, capitalization and punctuation consistent with the built-in keyboard experience, caps lock and ideographic input if appropriate, and dictation support.</p> <p>These aren't requirements and there aren't APIs to provide support for them "for free", but Apple categorizes their implementation as providing a competitive advantage.</p> <p>Like other types of extensions, custom keyboards are remote views that get presented to the host app. If a developer wants to provide support for multiple languages, they're encouraged to build a separate keyboard extension for each.</p> <p>Most importantly, Apple emphasizes trust. Apple emphasizes it over and over again. If a developer doesn't need to use server-side processing, they can keep keyboard functionality local, which enhances trust.</p> <p>If a developer wants their keyboard to go to the cloud, they need to get explicit permission and offer utility worthy of that permission. For example, auto-complete based on a server-side address book, location mapping, lexicon, prediction, dictation, sync, mobile device management, etc.</p> <p>Developers need to ensure that people get what they expect, and that if the go to the cloud, data is only ever used for the benefit of the person using it.</p> <h2>Security and privacy</h2> <p><a href='http://www.imore.com/custom-keyboards-ios-8-explained' title="Custom keyboards in iOS 8: Explained"><img src='http://www.imore.com/sites/imore.com/files/styles/large/public/field/image/2014/06/wwdc_2014_quickreply_privacy.jpeg?itok=ZRrzL73V' />[/url]</p> <p>iOS, being a privacy- and security-first operating system, does place some limitations on custom keyboards. First, by default they have to keep everything local to the device. That's to prevent key-logging activity. (Where a malicious app steals what you're typing.) If the keyboard does want to add server-side intelligence (which can improve the system), it has to ask your express permission. Apple will then warn you about the app having access to your credit card or street address information, but let you go ahead if you choose to.</p> <p>What's more, whenever you move to a secure password field, third party keyboards are temporarily disabled and the standard iOS 8 keyboard is presented instead. This is not only to prevent key-loggers, but to prevent anyone at all from having any access to your passwords whatsoever.</p> <p>Apple will no doubt also provide appropriate toggles in the Settings app should we wish to change our minds later.</p> <h2>Bottom line</h2> <p>Lack of custom keyboard support has been cited by some as a reason to stay away from iOS. Now that reason is gone. Although there are still limitations, both for security and privacy, and for technical reasons, pretty much any existing third-party keyboard can now be brought to iOS, and new and previously unimagined ones can be created. (Please, I beg you, don't waste this power on Hello Kitty!).</p> <p>We'll have to wait for fall to see how well they work, but it should amount to the difference between fantastic and phenomenal.</p> </div></div></div><div id="comment-wrapper-nid-25607"></div><img width='1' height='1' src='http://tipb.com.feedsportal.com/c/33998/f/616881/s/3c4e321e/sc/4/mf.gif' border='0'/><br clear='all'/>

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

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

Source: Custom keyboards in iOS 8: Explained
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: