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

Action Extension to Handle Images From Safari

I've got an iOS action extension that should support opening images and URLs (specifically webpages). However, the action extension does not appear in the list of available extensions when sharing an image from within Safari. For example, visiting…
Joseph Duffy
  • 4,566
  • 9
  • 38
  • 68
3
votes
1 answer

Unable to read shared file in action extension

I have an action extension for Safari that needs to read a file shared in my app's group. The code looks like this: func doneWithResults(resultsForJavaScriptFinalizeArg: [NSObject: AnyObject]?) { let fileManager = NSFileManager() let…
Armand Grillet
  • 3,229
  • 5
  • 30
  • 60
3
votes
2 answers

How to share notes data with share extension in iOS 9?

My application is working fine till iOS 8 But in iOS 9 Beta I am not able to share Notes text/image so can you please suggest me what thinks I need to implement for this?
Dipen Chudasama
  • 3,063
  • 21
  • 42
3
votes
0 answers

Can't receive Value for Share Extension in chrome

I am trying to build up a share Extension which is working fine on Safari Browser, But it is not working on Chrome browser. I also did some RND and found that i am unable to get values for Chrome. Here is my info.plist file code…
Ankita Kashyap
  • 157
  • 1
  • 12
3
votes
0 answers

State of [PFUser currentUser] not persisted across main application and iOS Today extension

I've enabled local data sharing between my Parse application and iOS Today Extension following the official documentation here, making the necessary initialization calls in both the AppDelegate of my app and the viewDidLoad method of my extension,…
Ken Toh
  • 3,721
  • 1
  • 24
  • 30
3
votes
1 answer

How do i add this sharing button? IOS8 with swift

I want there to be a button in my app, that when it is pressed, this(See image below) Pops up. How do i do that? I don't want to create a custom sharing extion, i just want the default one? What code do i use? All the tutorials online are in…
nachshon fertel
  • 121
  • 1
  • 6
3
votes
3 answers

Access contents of Watchkit extension's host's mainBundle

I'm writing a WatchKit extension and I'd like to read a file out of the host application's [NSBundle mainBundle]. I've tried [NSBundle bundleWithIdentifier:] but that just returns nil. I have several potential workarounds, but nothing that would be…
Rawling
  • 49,248
  • 7
  • 89
  • 127
3
votes
1 answer

Receive Local Notification In watchkit

I have setup Local Notification as below : -(void)startLocalNotification { UILocalNotification *notification = [[UILocalNotification alloc] init]; notification.fireDate = [NSDate dateWithTimeIntervalSinceNow:7]; notification.alertBody…
3
votes
0 answers

What is the UTI type for notes written in iOS Notes App?

What is the UTI type for Notes written in iOS Notes App. Is it public.plain-text or something else. Though public.plain-text works but it then supports all the text files also. I just want to import Notes from Notes App to my application. I am using…
Arun Gupta
  • 2,628
  • 1
  • 20
  • 37
3
votes
0 answers

GPPSignIn problems on iOS with share extension and keychain

I've written an iOS 8 app (in objective C) that uses google plus sign in. The main application and its share extension use the same keychain, so that signing in from the main application using the GPPSignInButton provides auth for the extension. The…
James Burke
  • 145
  • 5
3
votes
1 answer

iOS8 extension : share images between container and extension

I'm making an iOS 8 extension. Here's what I'm trying to do: Users select images from the photo library in the container app, and these images will be shared with the extension and for the further use. Right now I'm doing it in this way (If you…
NSError
  • 175
  • 1
  • 9
2
votes
2 answers

How to share Preferences in a Xamarin.Forms project between an iOS and iOS extensions?

I'm trying to get a string (UserID) using Preferences.Get (Xamarin.Essentials) on a PushNotification.Extension project, but as the Preferences.Set happens in the Xamarin iOS project, I'm always getting an empty string in the extensions project. Is…
idenardi
  • 600
  • 1
  • 6
  • 20
2
votes
0 answers

xCode 13 Build issue with iOS App Clip Extension

I have migrated from Xcode 12.4 to Xcode 13.2. My App is having App Clip extension bundled. My App and App Clip Extension having one framework i.e. FrameworkA. It's separately copied to both targets, name is same but size is different due to AppClip…
Gopesh Gupta
  • 707
  • 8
  • 19
2
votes
0 answers

iOS: access to file that was shared by extension is denied on device

My goal is to create an iOS share extension (via Xamarin) that enables an user to upload an audio or video file through my app to my backend via the iOS share menu. The workflow would be like: user opens audio or video file (e.g. from Files…
tobi_b
  • 1,218
  • 1
  • 12
  • 21
2
votes
1 answer

Swift: How to Reload Content Blocker

I'm using the "Content Blocker Extension" in my project, and have been informed that I have to call SFContentBlockerManager.reloadContentBlockerWithIdentifier() in my main app to reload the data in blockerList.json. But I don't really know HOW I…
Nick
  • 219
  • 4
  • 15