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.

+3
ios8 custom-keyboard ios-app-extension ios8-extension


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.

Enjoy



Daniel

+2


source to share


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



When the loaded application is loaded, read this value.

+2


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics