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
47
votes
5 answers

iOS8 extension needs own provisioning profile?

I am starting an iOS 8 extension but I can't run it on my device. The error when trying to run it is: No matching provisioning profiles found The provisioning profile specified in your build settings (“ExtensionName”) has an AppID of…
47
votes
7 answers

How to detect if code is running in Main App or App Extension Target?

Does anyone know how you detect from within your code if you're running inside an App Extension? I have an app which shares classes between an app and an extension. The app code uses [UIApplication sharedApplication] but this isn't available from…
Mark Bridges
  • 8,228
  • 4
  • 50
  • 65
43
votes
10 answers

How to detect Orientation Change in Custom Keyboard Extension in iOS 8?

In Custom Keyboard Extension , we can't use `didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation` and sharedApplication. I need to detect portrait or landscape in keyboard when rotate. How can i detect when…
Fire Fist
  • 7,032
  • 12
  • 63
  • 109
40
votes
1 answer

nil object in iOS8 delegate methods - custom keyboards

I'm building a custom keyboard and I'm implementing the following delegate methods in my InputViewController. But I always get _textInput = nil_ - (void)textWillChange:(id)textInput - (void)textDidChange:(id)textInput -…
nurnachman
  • 4,468
  • 2
  • 37
  • 40
38
votes
4 answers

Sharing code between original iOS App and App Extension

Sharing class between iOS app and extension app I want to use a custom class in both my app and the extension app. If I just have the class in the main app folder, the extension doesn't pick up on it. I tried making a copy of it and putting it into…
Ruben Martinez Jr.
  • 3,199
  • 5
  • 42
  • 76
38
votes
6 answers

How to set the height of a Today Widget Extension?

How can i change the height of my App's Today Extension in the Notification Center? I tried it with the Interface Builder and with Code, the Interface Builder Displays the View with height 600, but it's not applying this height on the device. It…
Gotschi
  • 3,175
  • 2
  • 24
  • 22
37
votes
17 answers

iOS 8 Custom Keyboard: Changing the Height

I have tried to create a custom keyboard in iOS 8 that replaces the stock one. I really searched and could not find out if it is possible to create a keyboard with more height than the stock iOS keyboard. I replaced UIInputView but could never…
sdtaheri
  • 557
  • 1
  • 8
  • 11
37
votes
3 answers

What does the "Embedded Content Contains Swift Code" build setting in Xcode 6 do?

It's a new setting under "Build Options". What does it do? I can't seem to find any documentation about it. My guess is this: Does it have to be set to YES in a mixed Objective-C/Swift app to tell Xcode to link against the Swift Runtime?
Johannes Fahrenkrug
  • 42,912
  • 19
  • 126
  • 165
36
votes
2 answers

How to disable the target for application extension when building in xcode?

I am looking a way to disable today extension target to decrease build time everytime while developing for application target.
khunshan
  • 2,662
  • 4
  • 28
  • 34
35
votes
11 answers

Installation Failed "Invalid argument" when trying to run Today application extension

I added a vanilla Today Application Extension and run with the new scheme created by XCode. After it finishes building ("Build Succeeded" pops up), it failed straight away with this error: Installation Failed Invalid argument I've been trying to…
foct
  • 351
  • 1
  • 3
  • 3
34
votes
3 answers

Get the main app bundle from within extension

Is it possible to get the containing app's NSBundle from within an app extension? I would like to get the main app's display name, not the extension's display name.
Jordan H
  • 52,571
  • 37
  • 201
  • 351
34
votes
4 answers

Accessing Core Data SQL Database in iOS 8 Extension (Sharing Data Between App and Widget Extension)

Problem: Unable to access application's Core Data database from within a Widget Extension in the Today View. The app itself is able to read and write to the database as per normal under iOS 8, but the extension will fail to create the store, giving…
Mark Bridges
  • 8,228
  • 4
  • 50
  • 65
30
votes
2 answers

Fit width in iOS 8 Today Extensions

When I make any iOS 8 Today Extension, there is an empty space on the left of approximately 48px, even if in Interface Builder I place a label on the left side at x=0. I have seen that some apps, however, use a full-width widget. How can I…
Antonio Giarrusso
  • 810
  • 1
  • 9
  • 19
29
votes
20 answers

iOS10 UNNotificationServiceExtension not called

Im implementing new iOS10 extension to use rich notifications. Im trying to test it on push notifications but is not working, I just receive a simple notification and is not going through the extension. I did all that it's specified in the official…
29
votes
2 answers

iOS 8 Share Extension custom view controller size

I'm building a share extension for my iOS app and I can't use the default SLComposeServiceViewController, so I created (in the storyboard) a basic UIViewController and embedded in a navigation controller. I get to present it, dismiss it etc but it's…
imas145
  • 1,959
  • 1
  • 23
  • 32
1
2
3
48 49