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

UIActivityViewController: Exclude non-Apple sharing extensions?

I would like to prevent my app to share its content to certain other apps using the extensions mechanism. For instance, I want the user to be able to share a link, but not with the Gmail app. My understanding of the documentary is that the following…
scrrr
  • 5,135
  • 7
  • 42
  • 52
7
votes
1 answer

NSUserDefaults(suiteName:) on iOS 9 and WatchOS 2 - not working?

I've done this before but nothing seems to be working. Here's my code: Saving in the iOS App let groupDefaults = NSUserDefaults(suiteName: "group.company.appSharedDefaults") groupDefaults?.setObject(theArray, forKey:…
JustAnotherCoder
  • 2,565
  • 17
  • 38
7
votes
2 answers

How do you create a Share Extension in iOS8 without a share UI

I was using Pocket and they seem to have created a share extension that simply posts the URL to their service w/o a UI. Anyone have an idea on how to replicate this? I'm new to extensions but very familiar with iOS/Objective-C
Brian L. Clark
  • 588
  • 5
  • 19
7
votes
3 answers

"Unable to Load" message in Today's Widget

I'm in between with my widget development. As we have already placed our app with widget integration. But in now a days, I'm facing problem with today's widget in iOS. I've written a code for two cases. First time when widget is initially loading…
6
votes
1 answer

iOS - Swift 3 Share Extension Preview Image

I'm currently building a share extension that accepts URLs. As part of this I've customised my share screen as outlined in a previous question to create a full screen view controller. This is all working fine. However in the default share composer…
TommyBs
  • 9,354
  • 4
  • 34
  • 65
6
votes
1 answer

How to pick one from multiply widgets for home screen using 3d touch?

When I was using only one today widget it was very simple and was like this: Now I added a second today widget to my app, and it is like this: Why it disappeared? What is wrong? Shouldnt be there two today widgets? Can I decide what widget should…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
6
votes
5 answers

How to Open Keyboard's settings screen programmatically in iOS 10?

How to Open Keyboard's settings screen programmatically in iOS 10? This code is not working in iOS 10 NSURL *keyboardSettingsURL = [NSURL URLWithString: @"prefs:root=General&path=Keyboard/KEYBOARDS"]; [[UIApplication sharedApplication]…
Rachit
  • 814
  • 9
  • 19
6
votes
2 answers

Use google firebase analytics with iOS action extension

I want to gather some info of the users who are using the action extension of my iOS app with google firebase analytics. It works well with the main app. But how to make it work with the extension? Is there a way to do that? I tried to create 2…
jokeman
  • 1,277
  • 9
  • 22
6
votes
0 answers

How to handle asynchronous completion of Javascript in an iOS share extension?

I am making a simple iOS share extension that will operate on web pages. It is not unlike Pinterest, in that it grabs certain info from the page. But it is different from Pinterest in that the JS used to do the grabbing is sometimes custom to the…
Greg
  • 2,523
  • 4
  • 22
  • 27
6
votes
3 answers

Binding a Unix Domain Socket from within an iOS extension fails with errno 48 (Address already in use)

I have some logic which works by creating a Unix Domain Socket and doesn't have any issues when run within a normal app. However, when I run this for an app extension I get a -1 with errno = 48 ("Address already in use") from the bind(). NSArray…
Locksleyu
  • 5,192
  • 8
  • 52
  • 77
6
votes
0 answers

Cocoapods library not found for apple watch extensions

Here is my PodFiles, as apple watch extension only need part of the library in the main app. # Uncomment this line to define a global platform for your project platform :ios, '7.0' ###################### source…
Siu Chung Chan
  • 1,686
  • 1
  • 14
  • 31
6
votes
5 answers

Prevent Apple Watch from turning off the screen

I'm writing an extension for the Apple Watch which aim is to guide the user through a set of steps. I don't have the watch to test the extension but I need to be sure that the screen will remain always on until all the steps are completed. Does…
aumanets
  • 3,703
  • 8
  • 39
  • 59
6
votes
3 answers

How to paste image from pasteboard on UITextView?

I have the following code on a keyboard extensión let pasteboard = UIPasteboard.generalPasteboard() var image = UIImage(named: "myimage"); pasteboard.image = image; This doesn't work on a UITextView I have on my container application, paste context…
StackOverflower
  • 5,463
  • 13
  • 58
  • 89
5
votes
2 answers

NSExtension - Runtime warning - [NSXPCDecoder validateAllowedClass:forKey:]

I am using a share extension and I get the following runtime warning: Note: Even adding the share extension on a new project and running throws the same runtime warning [Foundation] *** -[NSXPCDecoder validateAllowedClass:forKey:]: NSSecureCoding…
user1046037
  • 16,755
  • 12
  • 92
  • 138
5
votes
0 answers

didReceiveRemoteNotification in AppDelegate not called for silent push notifications with notification service extension

I have a notification service extension for my app for modifying my regular push notifications, which works fine. The didReceive method in the extension is overriding the didReceiveRemoteNotification method in AppDelegate. However, if I send a…
1 2
3
23 24