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

iOs Widget background update

According to what apple says about widgetPerformUpdateWithCompletionHandler:, the iOs Widget can update his content also when the widget is not visible. In my debug session i've noted that the todayViewController is deallocated everytime the…
11
votes
4 answers

Open iMessage from my application

Is there any way to open iMessage apple app from my app? I don't need any composers, the main idea is to open actual iMessage with my extension. EDITED I don't want to send any messages; I need only iMessage App to be opened
Vladyslav Zavalykhatko
  • 15,202
  • 8
  • 65
  • 100
11
votes
2 answers

iOS Share Extension is not working in Chrome

Works for Safari, Doesn't work for Chrome Maybe the question is simple and stupid but I am new to iOS Development and I cannot find any right solution to solve this issue. I need to get: 1) page url 2) page name Extension Info.plist
Denis
  • 2,622
  • 3
  • 22
  • 24
10
votes
4 answers

How to debug an iOS app extension?

I'm trying to debug an iOS app extension and all I can do is to set breakpoints but it would be nice to be able to print to console. Is this possible with Xcode 9? Or at least read it somewhere, maybe a file? I went to see my device's logs in…
pguzman
  • 141
  • 1
  • 7
10
votes
1 answer

Equivalent of UIApplication.shared.preferredContentSizeCategory in app extension

My open source library needs to be able to call UIApplication.shared.preferredContentSizeCategory. But UIApplication.shared is unavailable in extensions. The build error suggests that I find a view controller-based way to solve my problem, but I'm…
Zev Eisenberg
  • 8,080
  • 5
  • 38
  • 82
10
votes
0 answers

Share extension only with specific URL

Is there a way to filter Share extension to show only when, for example, the URL domain is a specific one? For example, I want to show my app extension only when the user is sharing a google link: http://www.google.com/?someQuery If I'm filtering…
FormigaNinja
  • 1,571
  • 1
  • 24
  • 36
10
votes
2 answers

Retrieve ALAsset or PHAsset from file URL

Selecting images in Photos.app to pass to an action extension seems to yield paths to images on disk (e.g.: file:///var/mobile/Media/DCIM/109APPLE/IMG_9417.JPG). Is there a way to get the corresponding ALAsset or PHAsset? The URL looks like it…
Duc
  • 487
  • 1
  • 7
  • 15
10
votes
2 answers

How do I set NSExtensionActivationRule predicates?

Even people far smarter than I am find the syntax for NSExtensionActivationRule arcane, but even a fool like me should be able to copy/paste examples, no? Unfortunately I can't even get Apple's examples to work. The host app for my action extension…
Duc
  • 487
  • 1
  • 7
  • 15
8
votes
2 answers

startAccessingSecurityScopedResource() returns false even when access to a file is allowed

I have an iOS app which has an action extension to save documents in it. The method startAccessingSecurityScopedResource() returns false in some cases even when I am able to access the file. BOOL success = [originalURL…
Sandeep T D S
  • 481
  • 3
  • 15
8
votes
2 answers

In custom iOS keyboard detect the app

How to detect in which app my custom keyboard used and show different button? E.g. in Twitter I would add @ to string I post into input field and in Reddit /r/
Igor Barinov
  • 21,820
  • 10
  • 28
  • 33
8
votes
3 answers

Send selected text from Safari to installed app via iOS 8 Action Extension?

Is it possible to use an iOS 8 Action Extension to send a selected text from the Safari browser to an installed app? I'm thinking about this workfow: The user would select a text in a website >taps the share icon >the installed app (not only the…
Tom
  • 5,588
  • 20
  • 77
  • 129
7
votes
1 answer

How to add a credential provider app extension for iOS 12 in xamarin

I’m trying to leverage the new extension to work with a password management app, and I’m running into a road block setting it up. It could be my googling skills but there is almost no documentation on how to do this with xamarin. What I have so…
Cuberic
  • 177
  • 1
  • 12
7
votes
0 answers

IONIC: Shared Container Folder for DocumentProvider Extension like Swift

I want to make a Document Provider extension for an app originally developed in IONIC.I understand that I can use .xcodeproj file to open the project in XCode and then add new target for intended extension.However, I'm confused about shared storage…
Abid Hussain
  • 1,529
  • 1
  • 15
  • 33
7
votes
1 answer

Is there environment variable for Extension parent app target name

I wish to set the extension Bundle identifier by script according to its parent App. (So I can reuse the extension without duplicating the extension target. right now the extension is hardcoded to this…
shannoga
  • 19,649
  • 20
  • 104
  • 169
7
votes
1 answer

iOS Share Extension Only Shows in Safari

I am testing an iOS share extension I'm building for an iPhone app. The share extension only appears in the share sheet for Safari. It doesn't show up in any 3rd party apps like Alien Blue or even any other 1st party apps like News. Is this because…
AttilaTheFun
  • 701
  • 2
  • 11
  • 19
1
2
3
23 24