ios-app-extension

Today View Extension (Widget) not working

末鹿安然 提交于 2019-12-10 09:32:47
问题 I found several other threads with similar problems, but no one has exactly the same problems. Besides it DID work some time! the errors now keep occurring while it was working some time before.. When Running my app, that has a build Target "Today View Extension", I get no actual result. The Extension is shown in Notification Center, but has no body (Simulator AND device). Also when I try to run the App (not the target extension) and attach the process manually by PID I get this error: I also

What is the difference between Apple's iMessage template or adding an extension to an existing app?

瘦欲@ 提交于 2019-12-10 09:27:25
问题 I have noticed this different regarding the creation of messages apps for iOS 10. If you create a new project using iMessage Application choice on the new project's template, Xcode will create two targets, an app and an extension. but the project is not able to run. (see by this second picture that there is only one choice on the target selector at the bottom and that target is the extension). When you create a normal app, like a single view app and then add a target that is an app extension

Exception when fetching parse.com user data in iOS 8 Today Extension

人走茶凉 提交于 2019-12-10 08:54:21
问题 I am trying to fetch a list of PFObjects of a PFUser to display in the iOS 8 Today Widget. Following this blog post by Parse, I've enabled the same App Groups and Keychain Sharing in both my main app and extension in Xcode. I've also enabled the following in the AppDelegate of my main app and the viewDidLoad of my Today Extension: [Parse enableLocalDatastore]; [Parse enableDataSharingWithApplicationGroupIdentifier:@"group.com.me.myapp" containingApplication:@"com.me.myapp"]; [Parse

How can app extension access files in containing app Documents/ folder

纵饮孤独 提交于 2019-12-09 05:17:30
问题 In the app extension is there a way to get images generated from the containing app which is store in /var/mobile/Containers/Data/Application//Documents// folder? 回答1: In order to make files available to app extension you have to use Group Path , as App Extension can't access app's Document Folder, for that you have follow these steps, Enable App Groups from Project Settings-> Capabilities . Add a group extension something like group.yourappid . Then use following code. NSString *docPath=

Detect whether custom keyboard is currently active from keyboard's container application

徘徊边缘 提交于 2019-12-08 10:47:00
问题 As part of my user on-boarding experience for a custom keyboard I'm developing, I'd like to know whether my custom keyboard is currently active for text entering from within the containing (parent) application. Is there any way to do this, similar to how you can discover whether the keyboard is installed? 回答1: After doing some further research, I have not yet found a way to accomplish this. But if anyone is in the same situation, here's a workaround I employed for the time being. 1. Detect

UNNotificationServiceExtension sometimes doesn't show image

╄→гoц情女王★ 提交于 2019-12-08 06:07:14
问题 I created subclass of UNNotificationServiceExtension to show remote attachment in notification. Randomly, attachment doesn't show. Issue is hard to reproduce, but some users reported, that after receive remote notification with image attachment, they can't see image. After some debugging, I encountered this issue once. I noticed that downloadTask() had empty location but response 's status code was 200 . override func didReceive(_ request: UNNotificationRequest, withContentHandler

iOS AlertView App Extension

流过昼夜 提交于 2019-12-08 03:56:31
问题 I'm working in a custom keyboard (iOS App Extension) . I have a UICollectionView in my Keyboard Layout , so when one item is selected I want to show a message ( UIAlerView for example). Here is my code: - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{ ... UIAlertController * alert= [UIAlertController alertControllerWithTitle:@"My Title" message:@"Enter User Credentials" preferredStyle:UIAlertControllerStyleAlert]; [self

iOS10 iMessage : Unable to insert data into iMessage using MSConversation

元气小坏坏 提交于 2019-12-07 22:51:11
问题 In my project i added iMessage Extension but i am unable to send selected data from UITableview (need to send selected row data) Declarations var savedConversation: MSConversation? I want to send the text when user didselectRow - Tableview but it is not throwing any error and not even going to MSConversation completion Block func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { let message = MSMessage() let layout = MSMessageTemplateLayout() layout.caption = "Win

How to add toolbar above iOS8 custom keyboard?

若如初见. 提交于 2019-12-07 19:51:00
问题 My problem is write picture. I really need you help. Maybe inputAccessoryView, inputAccessoryViwController can be used, but I really have no idea. Thanks so much! 回答1: You can adjust the height of your custom keyboard’s primary view using Auto Layout. By default, a custom keyboard is sized to match the system keyboard, according to screen size and device orientation. A custom keyboard’s width is always set by the system to equal the current screen width. To adjust a custom keyboard’s height,

Enabling In-App purchase for custom keyboard iOS8

元气小坏坏 提交于 2019-12-07 15:17:07
问题 I am building a custom keyboard for iOS and I want to know how can I enable in-app purchases for that? The documentation states that I can enable in-app purchases through the containing app, but I am not sure what that means (technically)? Has anyone built iPhone extensions with in-app purchasing that could give me some guidance? 回答1: An extension is bundled with an app. When the user downloads the containing app, the extensions are available for the user to add to their keyboard list, today