Determine if you added the custom keyboard to the keyboard list. iOS 8 extension

Is there a way to detect from the containing application if the user has added a custom keyboard to the keyboard list.

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

I have looked all the documentation about app extension and custom keyboards but I haven't found any solution.

I would appreciate it if someone could point me in the right direction.


source to share

2 answers

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





When the keyboard loads, write a boolean default for your shared container users.

When the loaded application is loaded, read this value.



All Articles