ios-app-extension

iOS 8 today widget stops working after a while

十年热恋 提交于 2019-12-20 08:39:50
问题 I've made a today widget for the german ice hockey league DEL. I'm loading the next games from our server an show them in a tableView. The loading process is started in the proposed method "widgetPerformUpdateWithCompletionHandler". Initially i'm loading some cached data in "viewWillAppear". Everything works great so far! But after a while (one day) the widget stops working. When I open the notification center the widget appears normal, but it is never updated again. I have to remove the

KeyboardViewController NSLog IOS 8

爱⌒轻易说出口 提交于 2019-12-20 01:43:41
问题 We can log with NSlog in other view in iOS 8 (Xcode Beta Version). However, I can't NSLog in keyboard extension in KeyboardViewController. It didn't appear in log. NSLog(@"viewdidload in keyboard"); I would like to know how to detect/log in real time. 回答1: You just don't see what is being logged in the debug area of Xcode because the Xcode debugger isn't attached to your extension. Extensions are nearly completely independent from their containing app. Answered here: for physical device:

IOS Share extension: how to read from notes posts

纵饮孤独 提交于 2019-12-19 17:06:16
问题 I want my app to be able to parse text from notes app post as well other text editors posts, so i created an share extension target. Everything worked fine until i prepare the app for publish, replacing the TRUEPREDICATE by NSExtensionActivationRule. Supposedly, in my share extension target, i should add NSExtensionActivationSupportsText key to NSExtensionActivationRule in info.plist, which i did, but still my app extension doesn't show up in the share sheet. According to https://developer

IOS Share extension: how to read from notes posts

我的未来我决定 提交于 2019-12-19 17:03:08
问题 I want my app to be able to parse text from notes app post as well other text editors posts, so i created an share extension target. Everything worked fine until i prepare the app for publish, replacing the TRUEPREDICATE by NSExtensionActivationRule. Supposedly, in my share extension target, i should add NSExtensionActivationSupportsText key to NSExtensionActivationRule in info.plist, which i did, but still my app extension doesn't show up in the share sheet. According to https://developer

How to detect if ios8 custom keyboard extension is running in not iphone 6 optimized app?

柔情痞子 提交于 2019-12-19 08:55:23
问题 In the app that not optimized for iphone 6 in standard display mode keyboard and status bar shows zoomed. This causes my manually layouted custom keyboard extension to show streched. How can I detect this zooming to fix layout? 回答1: Use self.view.frame.size.width It returns 320 for zoomed mode & 414 for regular mode on my 6+ (hopefully on 6 also) in - (void)updateViewConstraints 回答2: Eventually you will not need to do this as whatsapp and other apps get updated (I believe whatsapp just did)

Unable to cast UIImage in swift iOS 8 Extension

ぃ、小莉子 提交于 2019-12-18 16:09:13
问题 I have a strange problem, I am trying to build an action extension that will scan barcode from the image provided. Here is the code. override func viewDidLoad() { super.viewDidLoad() // Get the item[s] we're handling from the extension context. // For example, look for an image and place it into an image view. // Replace this with something appropriate for the type[s] your extension supports. var imageFound = false for item: AnyObject in self.extensionContext!.inputItems { let inputItem =

Xcode6:Embedded binary is not signed with the same certificate as the parent app

雨燕双飞 提交于 2019-12-18 12:44:54
问题 After I add Today App Extension Target,I become impossible to compile project. below is error: error: Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary target's code sign settings match the parent app's. Embedded Binary Signing Certificate: iPhone Developer: (Developer name) (number) Parent App Signing Certificate: iPhone Developer: (Developer name) (number) but Embedded binary certificate and parent app's cerificate are the same. So I'm

Check full access for custom keyboard extension

倖福魔咒の 提交于 2019-12-18 12:42:39
问题 I need to check full access for custom keyboard extension. I found this link. How to check the "Allow Full Access" is enabled in iOS 8? It say we can check App group. I have app group called "group.TTT.TGroup". It share access between main app and custom keyboard. Then, I check like this. Problem is that I always have access to that (always has array or error = null). Is it because I am sharing same data? But, if my app use another app group and extension use other app group, I can't

iOS 8 action extension icon is blank on device (works in simulator)

对着背影说爱祢 提交于 2019-12-18 12:16:11
问题 Edit2: I've distilled the problem down to the simplest project I can. Here's the setup. I created a new single view app and immediately added a new Action extension target. I created a new icon set in the .xcassets file and added an iPad retina sized icon (I've tried filling in all the icons, the results are the same). I made sure to include Images.xcassets in the Copy Bundle Resources build phase: And then when running the app in the simulator everything works! Compiling to device however

Save and Load Data on Today Extensions (iOS 8)

纵饮孤独 提交于 2019-12-18 05:54:16
问题 Is it possible to save and load data on Today Extension using NSUserDefaults? After closing the Notification Center, the widget behaves like an app which is terminated, so any data results lost. How could I solve this issue? This is my code: NSUserDefaults *defaults; - (void)viewDidLoad { [super viewDidLoad]; defaults = [NSUserDefaults standardUserDefaults]; NSArray *loadStrings = [defaults stringArrayForKey:@"savedStrings"]; if ([loadStrings objectAtIndex:0] != nil) { [display setText: