ios-keyboard-extension

Keyboard Extension Crash on Device

吃可爱长大的小学妹 提交于 2019-12-07 00:25:28
maybe you can help me? I've got a keyboard extension to work before on a device, but in my new project, it doesn't work... On the simulator, it works fine. I add the keyboard in Settings, and allow full access on both simulator and device. On the device, when I switch from any other keyboard to the new keyboard, it pauses for a bit, like it is loading, and a Xcode error pops up: Lost connection to "Kjell Connelly’s iPhone". Restore the connection to "Kjell Connelly’s iPhone" and run "com.2xpop.KeyboardRPG.Keyboard-RPG" again, or if "com.2xpop.KeyboardRPG.Keyboard-RPG" is still running, you can

Crashlytics doesn't work in iOS keyboard extension

孤者浪人 提交于 2019-12-06 15:37:25
I'm using the latest version of the Fabric and Fabric/Crashlytics cocoapods (so, version 3.0.8 according to the debugger output) to integrate Crashlytics into an iOS keyboard extension. Recently, it simply stopped reporting crashes from the keyboard extension. I've checked both my code which initializes Crashlytics and the Crashlytics script build phase of my project, both are executed (and the build phase is in my keyboard extension's target). It's hard to tell if this is related, but when I run the app I see Crashlytics try to submit crashes, [Crashlytics:Crash:Reports] Submitting async /var

Can we detect which ios application is using my Custom keyboard

北城余情 提交于 2019-12-05 18:41:55
问题 I want to detect in my custom keyboard extension app which application is using my extension. Can we detect any information in keyboard extension about application which is using my extension.I dont think it is possible .if any body have have knowledge about this kindly share it. Thanks 回答1: You can try this code in your UIInputViewController override public func viewWillAppear(animated: Bool) { super.viewWillAppear(animated) if let parentViewController = self.parentViewController { var

Communicate with Custom Keyboard extension with Host App not working in device but works in simulator

混江龙づ霸主 提交于 2019-12-04 17:52:27
I am working with custom keyboard extension. that almost done but i just facing issue with device when i communicate data with extension and my host app that not woking in device but same thing this working in simulator. My code is following: HostApp View controller: - (void)viewDidLoad { _defaultvalue = [[NSUserDefaults alloc] initWithSuiteName:@"group.myapp.myappname.targetKeyboard"]; [_defaultvalue setBool:YES forKey:@"Layout"]; [_defaultvalue synchronize]; [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. } - (IBAction)RightAction:(id)sender {

Keyboard extension loses height in iOS 10 when trying to size automatically in some cases

强颜欢笑 提交于 2019-12-04 12:15:36
问题 You can download a sample project demonstrating the issue below here: https://github.com/DimaVartanian/keyboard-extension-height-bug When creating a keyboard extension and not specifying a concrete height for its components but instead anchoring them to the view/inputView so that in theory the system will determine their height based on environment and orientation, in some situations that height instead turns into 0 and the keyboard is crushed (with the exception of anything that has a

Implement Keyboard Key Pop Animation in iOS 8 Keyboard Extension

不羁岁月 提交于 2019-12-04 07:59:31
问题 I'd like to ask how to implement the pop animation when holding a keyboard key for iOS 8 keyboards extension. I know how to assign the long press gesture on every key but doesn't know how to animate the keys to present other characters in that specific key. EDIT: I saw this similar question being asked here but the difference is that he was able to create the pop animations. EDIT 2: I saw another similar question being asked here but they differ on how it looks like compared to the default

Can we detect which ios application is using my Custom keyboard

痞子三分冷 提交于 2019-12-04 02:52:06
I want to detect in my custom keyboard extension app which application is using my extension. Can we detect any information in keyboard extension about application which is using my extension.I dont think it is possible .if any body have have knowledge about this kindly share it. Thanks You can try this code in your UIInputViewController override public func viewWillAppear(animated: Bool) { super.viewWillAppear(animated) if let parentViewController = self.parentViewController { var hostBundleID = parentViewController.valueForKey("_hostBundleID") println(hostBundleID) } } But I'm not sure that

How to test if “Allow Full Access” permission is granted from containing app?

橙三吉。 提交于 2019-12-03 14:22:50
I'm working on a keyboard extension project. At some points of the application code I need to test if the user have granted the "Allow Full Access" permission for the keyboard extension. The deal is that I need to do those tests from the application side, and based on this let the user to access keyboard settings or alert him in case the permission wasn't granted. The problem is that the methods that provided here like: func isOpenAccessGranted() -> Bool { return UIPasteboard.generalPasteboard().isKindOfClass(UIPasteboard) } or: func isOpenAccessGranted() -> Bool { let fm = NSFileManager

Keyboard extension loses height in iOS 10 when trying to size automatically in some cases

梦想与她 提交于 2019-12-03 07:51:29
You can download a sample project demonstrating the issue below here: https://github.com/DimaVartanian/keyboard-extension-height-bug When creating a keyboard extension and not specifying a concrete height for its components but instead anchoring them to the view/inputView so that in theory the system will determine their height based on environment and orientation, in some situations that height instead turns into 0 and the keyboard is crushed (with the exception of anything that has a concrete height such as a self sized label or button). This only seems to occur on iOS 10. On iOS 9, the

How to detect from iOS keyboard extension that a textfield is cleared via actions like hitting “Send” in iMessage?

为君一笑 提交于 2019-12-03 06:07:39
In my iOS keyboard app, I currently have a text suggestions bar much like the default iOS 8 Keyboard's suggestion bar. I would like to clear all text on the suggestion bar whenever the user does something that clears the text field (for example, when someone hits " Send " on iMessage or Whatsapp,). As hitting "Send" is not a keystroke , I was wondering if there is way to detect from the keyboard when a textfield is cleared. I have tried detecting empty text "" or new line "\n" , but so far this has not worked. Edit: I do know that this is possible through 3rd party iOS Keyboard, as seen the