title: Play standard iOS keyboard click sound in Custom Keyboard Extension
body: <p>I was wondering if there's new API in iOS 8 that will allow you to play the standard keyboard click sound in a keyboard extension - and only play it if they have the keyboard clicks enabled and the device isn't on silent. I haven't seen such an API, and I haven't seen any questions about this.</p>
  
  <p>I do know in previous iOS versions this was possible if you implemented a custom input or keyboard accessory view (via <code>[[UIDevice currentDevice] playInputClick];</code> after you adopt the <code>UIInputViewAudioFeedback</code> protocol and return <code>YES</code> in <code>enableInputClicksWhenVisible</code>). This was possible only in those situations. A keyboard extension is neither of those.</p>
  
  <p>Is it possible to play the input click with a custom iOS keyboard?</p>
  
  <p>Note that <a href="https://stackoverflow.com/questions/24496535/how-to-play-tock-sound-when-tapping-custom-keyboard-buttons?rq=1">this question</a> is related, but they wanted a custom sound, and the solution will not respect the user's preference for playing keyboard clicks - will always play them even when that option has been disabled.</p>