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
2
votes
0 answers

Is it possible to add Facebook SDK to my iOS Widget Extension?

Following the guide provided by Facebook I'm trying to add Facebook SDK to use analytics for my widget extension Seems not easy because the SDK asks to use CFBundleURLSchemes and AppDelegate.swift that are not present in the widget extension using…
Martino Bonfiglioli
  • 1,567
  • 1
  • 15
  • 29
2
votes
1 answer

NSPersistentCloudKitContainer written to by multiple processes

I have an app using iCloud and Core Data through NSPersistentCloudKitContainer. The container and related code are in a shared framework and most things are running fine. In addition to the app itself, I have a share extension and an intents…
2
votes
0 answers

How do I implement a iOS 13 SSO extension?

In June 2019 Apple presented the iOS 13 SSO extension: The new iOS 13 Single Sign-on (SSO) extension acts as the middle man that allows native apps and safari to authenticate with an identity provider. And there are two videos on the Apple…
2
votes
0 answers

iOS How to implement open host app in broadcast upload extension?

I see other live app can open host app when use control center record. [self.extensionContext openURL:YOUR_NSURL completionHandler:nil]; or [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString…
Karim
  • 322
  • 4
  • 20
2
votes
3 answers

iOS share extension, configurationItems (tableView)

please barer with me that I am completely new to swift and iOS.. I'm trying to make a "team select" on my share extension. Ideally I want to be able to tap the "Team" footer and select multiple teams from a table view, and at last share/post to the…
Rasmus Puls
  • 3,009
  • 7
  • 21
  • 58
2
votes
3 answers

Save image to documents folder using Share Extension

My goal (besides learning how to write an iOS app extension) is to allow a user to share an image using the share button from a variety of apps including Photos and automatically rename them. Lastly then I want to save the image to the "documents"…
Chris
  • 1,418
  • 2
  • 16
  • 34
2
votes
0 answers

Push Notification doesn't go through UNNotificationServiceExtension if you power off device

I'm trying to implement UNNotificationServiceExtension so that I could modify the contents of push notifications before they get shown. It working fine, but I noticed a scenario where push notifications don't go through the…
iamarnold
  • 705
  • 1
  • 8
  • 22
2
votes
0 answers

Programmatically update Xcode Targets Build Settings

I've an Xcode iOS project with two targets. Each of these targets includes a third target which is an iOS Extension (Widget). Is there a way to update the Widget build settings based on the choosen build target? I've already setup some pre-actions…
Andrea Corsini
  • 197
  • 1
  • 9
2
votes
1 answer

Use of unresolved identifier 'boundingRect'

I have very weird problem with below code. extension String { func height(withConstrainedWidth width: CGFloat, font: UIFont) -> CGFloat { let constraintRect = CGSize(width: width, height: .greatestFiniteMagnitude) …
Sunil Targe
  • 7,251
  • 5
  • 49
  • 80
2
votes
1 answer

Swift: Delete photo in iOS Action Extension

So i'm developing an app to let user select a few photos in the system Photo Library then using the Action Extension via the share sheet to delete some of those photos. I was using extensionContext.inputItems to get the URLs of the selected…
Alice Chan
  • 2,814
  • 2
  • 16
  • 16
2
votes
0 answers

Does a CXCallDirectoryProvider's addIdentificationEntry data get used in Messages?

I have put together a CallKit extension to id incoming phone calls. What I'm wondering (and a bit surprised by) is that these identifications only seem to work with phone calls but not SMS/iMessages coming from the same number. Is there a way to…
SlashDevSlashGnoll
  • 2,141
  • 1
  • 12
  • 15
2
votes
0 answers

Launch container app in background from extension

I have an iOS custom keyboard that send input texts to its container app, which process them into predictions and send them back to the extension (keyboard) for the user. In this situation, the container app can run in background for 180 seconds and…
Cisoun
  • 31
  • 3
2
votes
1 answer

Check iOS app state from UNNotificationServiceExtension [Swift]

I'm using UNNotificationServiceExtension in my Swift app for iOS and it is working OK. For special cases I need to know if my app is running when the method didReceive from UNNotificationServiceExtension is getting called. I tried writing to…
inthy
  • 362
  • 6
  • 16
2
votes
1 answer

What is the right way to update CXCallDirectoryExtensionContext label?

I'm start to using the CallKit to identify numbers. After many bug it's working, but I don't find a way to update a label after if changes. For now I know that works if I remove the identification and add it again calling the…
2
votes
0 answers

Document Provider / File Provider - Location Settings iOS 11

iOS 11 revolutionized the Document Provider extension with File Provider Apple Documentation on Choosing File Providers My question is on the UX when searching for locations on iOS 10 vs iOS 11. Previous to iOS 11, a user could manage their…
cnbecom
  • 166
  • 1
  • 8