I'm writing my own custom keyboard. And I don't know how to connect my settings bundle(setting in phone) with my keyboard extension, so if somebody change settings from phone settings and after that open some text field to write something my keyboard already knew about than changes he made in settings. I've tried to create app group to connect my application with my extension, and in my view controller add observer for NSUserDefaultsDidChangeNotification
something like:
var notificationCenter = NSNotificationCenter.defaultCenter()
notificationCenter.addObserver(self, selector: "settingsDidChange:", name: NSUserDefaultsDidChangeNotification, object: nil)
When somebody makes changes in settings settingsDidChange: method will be called and there i'm setting all things i need to read into my app group to read it from my extension. But this method will be called only when person open my application, so if somebody change setting from phone settings and won't open application my keyboard won't change. so how can i implement my settings bundle for my keyboard?