Questions tagged [ios-extensions]

App Extensions for iOS development.

App Extensions for iOS development. App extensions give users access to your app’s functionality and content throughout iOS 8 and OS X Yosemite.

Starting in iOS 8.0 and OS X v10.10, an app extension lets you extend custom functionality and content beyond your app and make it available to users while they’re using other apps or the system. You create an app extension to enable a specific task; after users get your extension, they can use it to perform that task in a variety of contexts

Source: Apple App Extensions Document

iOS and OS X define several types of app extensions, each of which is tied to an area of the system, such as:

  • Share
  • Today
  • Photo Editing
  • CustomKeyboard
  • File Provider
  • Document Provider
  • Actions
  • Finder Sync

Please refer Here for more information:

350 questions
4
votes
2 answers

iOS extension "Failed to find a valid app with bundleID" & "Error was encountered trying to find service extension"

We have an extension in our iOS project (Broadcast Upload Extension). The extension works well when doing local builds, however whenever we do a TestFlight build a distribute it we encounter following exception (found in device logs): Error getting…
Jakub Holovsky
  • 6,543
  • 10
  • 54
  • 98
4
votes
0 answers

in xcode debug ios, Message from debugger: Terminated due to signal 6

I debug ios extension, when I use JSONSerialization.data, extension crash, and log is Message from debugger: Terminated due to signal 6 It is strange that error can not catch , just terminated. I tried much to find this on net but dont find any…
kinolee
  • 53
  • 7
4
votes
2 answers

Checking "Allow app extension API only" in iOS framework project exposes internal classes and methods to consumers

I created a simple iOS framework Swift project and added a single Swift class Logger with a single stub method log(_:) class Logger: NSObject { func log(_ message:String) { // ... } } The Logger class and log method are internal to…
stakri
  • 1,357
  • 1
  • 11
  • 14
4
votes
2 answers

How to create the new target in Xcode for app extension using CMake?

I want to use Notification Content Extension in my Xcode project. I use CMake to generate my project. Now the project has only one target. I can add the extension as new target manually in Xcode using menu File - New - Target - Notification Content…
Andrey Tozik
  • 115
  • 7
4
votes
0 answers

How can I get the containing app when implementing a `UNNotificationServiceExtension`?

I have one extension target and many product targets, and I want that one extension target to be able to be shared among all of my product targets and still be able to identify the app that will receive the UNNotificationRequest. Is there a way to…
Hyperbole
  • 3,917
  • 4
  • 35
  • 54
4
votes
0 answers

List of public API unavailable for Apple App Extensions

iOS App extensions are not allowed to use all available public Apple API. This Apple documentation lists some restrictions. For instance: Because of its focused role in the system, an app extension is ineligible to participate in certain…
shallowThought
  • 19,212
  • 9
  • 65
  • 112
4
votes
0 answers

How to get $(PRODUCT_MODULE_NAME) string (in Swift)?

In Swift 3, We can get $(PRODUCT_BUNDLE_IDENTIFIER) from Bundle.main.bundleIdentifier. For bundle name, we can access to info.plist and retrieve it as below. Bundle.main.infoDictionary![kCFBundleNameKey as String] as! String How to get…
João Oliveira
  • 422
  • 3
  • 17
4
votes
0 answers

iOS - Safari Content Blocker can't read data from NSUserDefaults

I've been working on a Content Blocking application for some time now. I have a switch in the main app that should turn of the blocking filter. The value of this switch is saved in an NSUserDefaults property that's enabled with App Groups so the…
4
votes
1 answer

Determine memory limit of iOS today extension

I'm developing an iOS today extension, that can read an image from UIPasteboard and save it on disk. This process fails with large images because iOS extensions can't use much memory. To workaround this issue, I'm checking the size of the image…
Felix
  • 776
  • 8
  • 16
4
votes
0 answers

Sharing attachments using Gmail sharing extension

I'm attempting to share an image in my app using Gmail sharing extension. Everything works okay except for the recipient of the email who receives a malformed file. Sample project can be downloaded from here. Using iOS 8.3, Xcode 4.6.3, Gmail…
4
votes
4 answers

How to overlap two controls in iOS watch kit using interfacebuilder

I have two button with images and i want to overlap one over another. Is it even possible to do it iOS Watch? Moreover, how to handle background or foreground depth of a WKInterfaceObject in watch programming, like sendViewtoBackground or…
N0mi
  • 714
  • 7
  • 14
4
votes
1 answer

iOS App Today Extension not uploaded to physical device

I am creating a today widget for my app http://budgt.ch as some users have requested quick access to key functionality. The (preliminary) extension is working fine on iOS simulators, installed like this: 1) install latest container app 2) install…
4
votes
2 answers

iOS - sharedApplication is unavailable in Today Extension?

I am creating a Today extension. I have added all necessary files and getting a bunch of compile errors about openUrl is not available sharedApplication is not available init on UIAlertView is not available The files with these dependencies are…
aryaxt
  • 76,198
  • 92
  • 293
  • 442
4
votes
1 answer

Accessing main App class from extension target - iOS

I have an ObjC project and I've added a WatchApp Extension target in Swift. It works fine, however I have a database handler class that I wanted to make accessible from the watch extension target in order to get some data from it. I've added the…
Lucas Pereira
  • 569
  • 1
  • 11
  • 23
4
votes
0 answers

Is there a list of APIs not accesible from an iOS extension?

I read on (this) Apple documentation that there are some APIs not available for an extension. But it doesn't specify which ones and I was not able to find any specification. Is there any additional documentation around this?
Omer
  • 5,470
  • 8
  • 39
  • 64