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
29
votes
1 answer

What is the purpose of widgetPerformUpdateWithCompletionHandler in iOS 8 Today Widget?

Been looking around for an answer but everything seems vague or unclear. Anyways, just want to know what the purpose of the function: widgetPerformUpdateWithCompletionHandler does in the today widget. According to Apple: This method is called to…
ktzhang
  • 4,069
  • 2
  • 19
  • 18
29
votes
4 answers

Writing an iOS 8 share extension without a storyboard

Does anyone know of a good way to write an iOS 8 share extension without the MainInterface.storyboard that comes with the template? When I delete the file or remove the NSExtensionMainStoryboard from Info.plist, the extension stops working (nothing…
Steve Gattuso
  • 7,644
  • 10
  • 44
  • 59
27
votes
7 answers

How do you provide an icon for an action extension?

All the extension types use the containing app's icon, with the exception of action extension. The Apple documentation says this: In iOS, a custom Action extension uses a template image version of its containing app’s icon, which you must…
Gruntcakes
  • 37,738
  • 44
  • 184
  • 378
26
votes
3 answers

Does iOS 8 support dynamic linking?

Up until iOS7, Apple did not support dynamic linking due to security concerns. Code reuse between developers usually relied on static libraries, which were built as part of the executable of the app. Introducing extensions in iOS8 seems to change…
Slavo
  • 15,255
  • 11
  • 47
  • 60
25
votes
3 answers

Get Bundle ID from a different target

In my Xcode project, I have 4 different schemes (prod, dev, staging, staging2) which changes the bundle identifier of the app that gets installed to the phone. That way I can have all 4 versions installed side by side, similar to this technique. Now…
djibouti33
  • 12,102
  • 9
  • 83
  • 116
24
votes
4 answers

UIApplication.sharedApplication not available

I'm trying to get a reference to my app delegate from a UIViewController but I keep getting an this error message: 'sharedApplication()' is unavailable: Use view controller based solutions where appropriate instead. I've been reading all the…
DoertyDoerk
  • 1,215
  • 1
  • 8
  • 19
24
votes
2 answers

Extension project templates not appearing in Xcode 6

I'm not sure if I am the only one experiencing this program, but I have tried searching and have not been able to find anyone in my current situation. I downloaded Xcode 6 beta and was interested in Extension programming for iOS 8. However, I have…
Terry
  • 616
  • 6
  • 16
22
votes
1 answer

Icons for iOS Action Extensions Disappearing After Share Button Menu Disappears

I've been working on a couple of iOS action extensions for a while, but I have noticed an odd behavior I was wondering if anyone else saw. In short, after you install and turn the extension on from the share button menu and leave the menu, it…
KWJ314
  • 231
  • 1
  • 5
22
votes
4 answers

iOS 8 today widget stops working after a while

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…
Wilko X
  • 320
  • 2
  • 13
22
votes
9 answers

How to launch a parent iOS App from its App Extension

Does any one know how to launch the parent app from the app extension's view controller? I just want to launch the main app from its app extension.
loganathan
  • 2,056
  • 2
  • 23
  • 34
21
votes
8 answers

iOS 10 iMessage app extension: how do i calculate the height of the extra tall navbar

I downloaded the Xcode 8 beta and was trying to play around with the iMessages app extension sdk but ran into an issue with their seemingly nonstandard nav bar height when i transition into the app's expanded view, my image with the following frame…
stanley
  • 1,113
  • 1
  • 12
  • 26
21
votes
3 answers

How to unit test an app extension on Xcode 6

Does anyone know how to perform unit testing on app extension target, especially keyboard extension target? What have I tried (in the unit test target): In the "General" tap, set it's target to the extension target instead of the container…
liuyaodong
  • 2,547
  • 18
  • 31
20
votes
1 answer

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

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?
Paul Smith
  • 395
  • 1
  • 3
  • 10
20
votes
5 answers

Xcode 6 Archiving and get a warning "Skipping copy phase strip ,binary is code signed" when add "share extension" to target

I got this warning when I added share extension to my project and archiving it warning: skipping copy phase strip, binary is code signed: /Users/xxxx/xxx/xxxx/Build/xxxx/Build/Intermediates/ArchiveIntermediates/xxxx/IntermediateBui…
20
votes
3 answers

How to create a Today widget programmatically without storyboard on iOS8?

I tried to delete the storyboard file and related Info.plist entry but this time extension stopped working; it doesn't even launch from XCode. The operation couldn’t be completed. (LaunchServicesError error 0.) It is easy on the regular app…
frankish
  • 6,738
  • 9
  • 49
  • 100
1 2
3
48 49