Questions tagged [ios-app-extension]

App extensions are a feature introduced in iOS 8 that allows apps to extend their functionality and become available to users while they're using other apps. Extensions are created to do a specific task, such as enabling sharing Safari pages through your app, or to display an interface in Notification Center for your app.

App extensions are a feature introduced in iOS 8 that allows apps to extend their functionality and become available to users while they are using other apps.

Extensions are created to do a specific task, such as enabling sharing Safari pages through your app, or to display an interface in Notification Center for your app.

722 questions
20
votes
2 answers

Making share extension with custom layout

I want to develop ios share extention with custom callout. In apple documents To provide a custom compose view instead of the standard one, deselect “Use standard social compose interface” in the Xcode target-adding pane. When this checkbox is…
Canberk Ersoy
  • 428
  • 1
  • 5
  • 13
20
votes
2 answers

Uninstalling app not delete app group data .Do I have to remove app group container and it's content manually?

I created a Today Extension that is introduced in iOS 8 first time. To share data between Today extension and it's container App, I defined an app group, and bind them to this group. (Actually I added an embedded framework also to re-use code in…
jeeeyul
  • 3,727
  • 1
  • 24
  • 37
19
votes
2 answers

Custom Keyboard: Hub connection error

recently I was playing around with the custom keyboard extension in iOS 8 Beta with Swift (Xcode beta 6), but I keep getting this error when I run it on a simulator, it seems to be quite random and I've no idea what causes it: plugin…
niclas
  • 710
  • 1
  • 6
  • 17
19
votes
4 answers

iOS 8 Beta Today extension widget not showing in a Swift app?

Today extension doesn't show up in a Swift app, but it does in a Objective C app. What I did was to add a UILabel with some content on the storyboard for the swift and objective c apps. It showed up when I ran the Objective C app, but not when I…
esh
  • 2,842
  • 5
  • 23
  • 39
18
votes
3 answers

Detect whether run target is App Extension or iOS App

I have a simple app which also has a iOS 8 Today Extension (or widget). One of the things I am doing is sharing code classes between my app and my widget, because obviously this saves me from having to have multiple copies of the same code. It all…
user4657588
18
votes
3 answers

Why won't app groups work inside my WatchKit extension?

I've seen all the other posts of SO about sharing NSUserDefaults data between host apps and app extensions, but mine still doesn't work. Here's everything I've done: Enable App Groups on Xcode's "Capabilities" tab for the extension and host…
18
votes
3 answers

iOS8 Unable to create a folder/file under app group shared container location

I am using following code to create a folder/file under the shared container path. Which will help both app extension and the extension containing app can access the data. code to get the shared container url…
loganathan
  • 2,056
  • 2
  • 23
  • 34
18
votes
11 answers

Get device current orientation (App Extension)

How to get device current orientation in an App Extension, I have tried below two methods but no success. It always return UIDeviceOrientationUnknown [[UIDevice currentDevice] orientation] It shows red message that ‘sharedApplication’ is not…
18
votes
2 answers

How to make popup like keyboard characters in iOS8 custom keyboard?

I want to create popup in iOS8 custom keyboard as shown below image. Some code are working but can't access outer window of keyboard and occures issue as shown in below image-2
Scorpian Alive
  • 734
  • 8
  • 21
18
votes
3 answers

What is the preprocessor macro to test whether an application extension is being built?

This question is based purely on publicly released documents regarding the introduction of application extensions in iOS. With the introduction of app extensions in iOS 8, it is now possible to "extend custom functionality and content beyond your…
Andrew
  • 15,357
  • 6
  • 66
  • 101
17
votes
1 answer

Linking to a Embedded Framework from a app extension

I have a project with one application target: MyApp one Embedded Framework target: MyKit.framework one application extension target: MyExtension Here is a sample project. I want to use the shared code of MyKit in the MyExtension but when I link…
Jan
  • 7,444
  • 9
  • 50
  • 74
17
votes
1 answer

How to display an image from Asset Catalog in Today Extension?

I'm working on a Today Extension for iOS8. My App Group is set up correctly and I can successfully use NSUserDefaults to send simple bits of data to my extension (using this tutorial). In the storyboard for my extension, I've placed an image onto…
Andrew Davis
  • 2,310
  • 1
  • 24
  • 43
17
votes
1 answer

Play standard iOS keyboard click sound in Custom Keyboard Extension

I was wondering if there's new API in iOS 8 that will allow you to play the standard keyboard click sound in a keyboard extension - and only play it if they have the keyboard clicks enabled and the device isn't on silent. I haven't seen such an API,…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
17
votes
12 answers

launch containing app from iOS8 Custom Keyboard

I want to launch my containing app. I tried using URL schemes. The URL scheme launched the app from other places - so the problem is not there. Looks like this object is nil: self.extensionContext thus i can't run this…
nurnachman
  • 4,468
  • 2
  • 37
  • 40
17
votes
5 answers

Get full string in iOS8 Custom Keyboard Extension

I'm creating a Custom Keyboard Extension for iOS 8. I want to get the whole string that the user wrote in the text input field. Unfortunately I stumble in to two main problems: 1) I get null in this callback: -…
nurnachman
  • 4,468
  • 2
  • 37
  • 40