Questions tagged [ios8-extension]

Refers to the extensions added in iOS 8; may include Today extensions (widgets), Share extensions, Action extensions, photo editing extensions, custom keyboard extensions, document provider extensions. For Apple Watch extensions, use [watchkit].

Refers to the extensions added in iOS 8, which may include Today extensions (widgets), Share extensions, Action extensions, photo editing extensions, custom keyboard extensions, document provider extensions.

For more information, see Apple's Extensions documentation.

199 questions
6
votes
3 answers

iOS 8 extension dependencies issues. Importing one project file to extension view controller

I am working on iOS 8 extension. I read many manuals and all of them just show how simple add extension to your app, and seems that's enough. But here are many pitfalls: After adding your extension you will need to import some of your classes to…
Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277
6
votes
2 answers

iOS Share extension how to support *.wav files

As the title states, I want my extension to show up when the users share *.wav files I've come across the following apple…
LostBalloon
  • 1,608
  • 3
  • 15
  • 31
6
votes
2 answers

iOS - OpenURL from Keyboard extension on iOS 8.3 beta

On my project I used a WebView to open a Container App from Keyboard extension. It worked ok until I tried to run it on iOS 8.3 beta.. On this new iOS version it just do nothing. I tried to use NSExtensionContext and WKWebView - without any success…
6
votes
2 answers

iOS Extension - Detect "extension state changes" (Background/Foreground)

I have a share extension implemented for iOS8. The service uses OAuth to authenticate. The login info I use for the extension is shared with the container app. The problem is: When I am in the extension, then app switch to the container app and…
Adam Zielinski
  • 401
  • 3
  • 8
6
votes
4 answers

How to hide the iOS 8 Today Widget when there is nothing to display?

I'm using the today widget for iOS8 to display information relevant to the current day. The problem is I don't want to display the widget/section at all if there are no relevant messages to show. I know it must be possible as the BA app does it (it…
user843337
5
votes
1 answer

Share Extension is not showing data -- ios

I am trying to create a share Extension. I am showing them into Table view. My data is coming but i am not able to see. Also it freezes (Like we have data and popup but not showing). here is my sample code // // ShareViewController.m // …
Hitu Bansal
  • 2,917
  • 10
  • 52
  • 87
5
votes
3 answers

How to access keyWindow in share extension in ios?

I need to access keyWindow in share extension for my app to - Add some indicator view - Access the width and height of window I wrote the following line in the share extension classes: UIWindow *mainWindow = [[UIApplication sharedApplication]…
Ashok
  • 5,585
  • 5
  • 52
  • 80
5
votes
1 answer

Share sqlite database between app and extension

I have followed this tutorial and added my database. I did target both my app and my extension. From my app I can SELECT, INSERT, DELETE and UPDATE to the database. I want both my app and extension to share the same database. So I add information in…
user599807
5
votes
0 answers

iOS 8 Extensions don't appear in the Share Dialogue

I'm building a Share Extension to my App. My problem is that it doesn't show up in the Share List, until I go to 'More' screen, disable then enable it. I have tried all 'NSExtensionActivationRule' combinations including TRUEPREDICATE. PS. Same thing…
5
votes
0 answers

Access files stored in [NSFileManager containerURLForSecurityApplicationGroupIdentifier] for debugging

I have an app with the following code: NSURL *containerURL = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:@"group.com.myCo.myApp"]; [containerURL URLByAppendingPathComponent:@"Myfile"]]; Reading and writing from…
lewis
  • 2,936
  • 2
  • 37
  • 72
5
votes
5 answers

Apple Watch notification error "Unhandled Category"

I'm working with Apple Watch Notifications. I defined my own category "myAppcategory" and passed the same to notification payload. But, still i'm receiving below warning in XCode. Warning: Notification category "(null)" not found. Define this…
Teja Kumar Bethina
  • 3,486
  • 26
  • 34
5
votes
2 answers

Can iOS Today Extension read URL Schemes from app's Info.plist

We have our app target, and in that Info.plist, we defined URL Schemes that can be used to open the app with a URL. Now we are adding a today extension. We will want to have a table view who will open that URL from the extension. We see how that…
Jason Hocker
  • 6,879
  • 9
  • 46
  • 79
5
votes
0 answers

iOS 8 today widget snapshot

I'm developing a today widget displaying some personal information about the user using it. According to Apple documentation (here) the system captures snapshots of today widget's view. To help your widget look up to date, the system occasionally…
Tsahi Deri
  • 571
  • 1
  • 3
  • 14
5
votes
0 answers

How to write a file from iOS8 share extension that host app can read?

I have a share extension in iOS8 that I'm invoking from Safari. After it runs it has some data that it wants to share with the main application (for which both are using a shared app group), however the data is far too big to stuff into the user…
5
votes
2 answers

Why don't call method presentationControllerForPresentedViewController of UIViewControllerTransitioningDelegate?

I want use custom UIPresentationController. For it when I want show new scene I call this code UIViewController *cv = [[...]]; cv.transitionManager=[[MyTransition alloc]…
Vit
  • 936
  • 1
  • 10
  • 20
1 2
3
13 14