Is there memory requirement set forth with custom keyboard extension? I recall reading somewhere that the keyboard can crash if you exceed a small amount of memory in your app.
Asked
Active
Viewed 1,096 times
1 Answers
1
The limit is 30MB, at which point you will receive one or two low memory events, and then your keyboard will be immediately killed and replaced with the system keyboard if you don't clean up the memory usage in a low memory handler.
The reasoning is that application extensions, which a custom keyboard is considered one of, are given very minimal RAM to play with.

Brendan Molloy
- 1,784
- 14
- 22
-
Thanks - is this limit documented somewhere? – Boon Nov 30 '15 at 12:10
-
The only tidbit of documentation that refers to this at all that I can find is [here](https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/ExtensionCreation.html). I confirm the 30MB limit from experience on both iOS 8 and 9, as I'm working on keyboards as we speak. – Brendan Molloy Nov 30 '15 at 12:12
-
This [question](https://stackoverflow.com/questions/25354192/get-terminated-due-to-memory-error-for-ios-8-custom-keyboard-extension?rq=1) also refers to the 30MB limit. – Brendan Molloy Nov 30 '15 at 12:13