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

App Groups and iCloud in iOS

I am familiar with iCloud syncing, but I am new to app groups. There may be a simple answer to this question, but I haven't found it yet. Basically, I have an app in which I have iCloud integration, and now I want to try to add a today extension. I…
James
  • 323
  • 3
  • 8
3
votes
0 answers

Difference between NSExtensionActivationSupportsWebPageWithMaxCount and NSExtensionActivationSupportsWebURLWithMaxCount?

If my app want to support sharing from Safari browser, I will include the following 2 activation rules NSExtensionActivationSupportsWebPageWithMaxCount NSExtensionActivationSupportsWebURLWithMaxCount NSExtensionActivationRule
Cheok Yan Cheng
  • 47,586
  • 132
  • 466
  • 875
3
votes
1 answer

Programmatically hide iOS widgets?

I have developed an iOS 14 desktop widget for an application and I would like to only make it available to some users. Is there a way to disable widgets the first time your application runs so that you can hide it from some of your users?
TALE
  • 960
  • 13
  • 22
3
votes
1 answer

How can I use IPC from an app extension to asynchronously send information to the containing app on iOS?

I would like to use inter-process communication in my app extension to notify its containing app when the extension makes changes to the app group's UserDefaults database. Currently, there appears to be no way to be informed when the UserDefaults…
3
votes
1 answer

How to prevent an action extension from appearing in my own iOS app?

I have an iOS app with an action extension that is used to perform actions on images inside other apps when they present UIActivityViewController. Everything is working as intended - if I present an activity sheet in another app, my action extension…
3
votes
1 answer

Network extension view print statements

I am implementing a NEPacketTunnelProvider and loading it from my view controller using: var vpnManager: NETunnelProviderManager = NETunnelProviderManager() ... let providerProtocol =…
wheresmycookie
  • 683
  • 3
  • 16
  • 39
3
votes
2 answers

Create iOS Action Extension with no UI

I am trying to create an Action Extension similar to the system "Copy" action available in iOS. I found different answers saying it's not possible to have non-fullscreen UI, but according to Apple Official Documentation it is possible to have no UI…
pasine
  • 11,311
  • 10
  • 49
  • 81
3
votes
1 answer

How to expand iOS Today Widget by default?

I'm setting [self.extensionContext setWidgetLargestAvailableDisplayMode:NCWidgetDisplayModeExpanded] in viewDidLoad and, as expected, I'm getting the "show more" button that toggles between compact and expanded widget mode. When the widget starts,…
Branko
  • 420
  • 5
  • 20
3
votes
0 answers

How to open the companion app and go back in from a keyboard extension in iOS

So, I have this requirement where a keyboard extension must be able to open it's companion app and have the user take a specific action in there and then be able to go back to whatever previous app was opened and input some text in the previously…
Mihai Fratu
  • 7,579
  • 2
  • 37
  • 63
3
votes
1 answer

Use different swift file for different target?

There are two target for one project. One is main application project and other is share extension project. I had require to use swift bridge header file in both project I am facing issue for using different file for different target. #ifndef…
Sunny Shah
  • 12,990
  • 9
  • 50
  • 86
3
votes
3 answers

How to call a function from an extension to UIViewController in Swift

I am trying to make my Navigation bar transparent. It works when i create the function within the same ViewController however i want to reuse it in many other ViewControllers so i decided to use an extension extending the UINavigationController.…
3
votes
1 answer

iOS - Notification Service Extension will be killed due to sluggish startup

I have an issue starting a Notification Service Extension. After distributing the app via TestFlight certain phones had a high rate of failure to start the extension and it fails with the following log message: default 10:13:56.071211 +0100 …
bernheart
  • 43
  • 1
  • 7
3
votes
1 answer

Sticker Pack Error - missing app extension

The messages stub app _ must have at least one app extension, but none were found. This is odd because I was running my sticker pack app yesterday with no problems. What's the deal?
Jacksonkr
  • 31,583
  • 39
  • 180
  • 284
3
votes
1 answer

Items in File provider extension for ios 11

I have an app with file provider extension in it. I tried giving support to the new file app with the ios 11 using this link I did what is instructed in this but no item is getting displayed. I have added this…
Raghav7890
  • 458
  • 3
  • 13
3
votes
0 answers

NotificationServiceExtension not called

After iOS 10 released, I use NotificationServiceExtension for image notification. It works fine. But I found something wrong recently. Codes in UNNotificationServiceExtension not call anymore. I'm not sure the cause so I create a new project for…
Jack
  • 321
  • 2
  • 9