Search code examples
ios8ios-app-extensioncustom-keyboardios8-extension

Determine if the user added a Custom Keyboard to the keyboards list. iOS 8, Extension


Is there any way to determine from the containing app if the user added a custom keyboard to the keyboards list.

For example, this approach uses the Fleksy and Swype apps. When the app opened from a background it knows whether the keyboard added to the list or not.

I looked through all the documentation about the app extension and custom keyboards, but I didn't find any solution of that.

I would appreciate if someone could point me to right direction.


Solution

  • You should read the NSUserDefaults.standardUserDefaults() as a Dictionary. Inside you can find "AppleKeyboards" as an array with all the apple id's of the installed keyboards.

    Enjoy

    Daniel