Questions tagged [today-extension]

A Today Extension is a widget shown in the today view of the notification center of OS X and iOS.

Usually a today extension shows informations which is related to current events, like current sock prices, weather and upcoming events. Some extensions though provide other functionality like a calculator or iTunes controls.

Today Extensions were introduced in iOS 8.0 and OS X 10.10 and can be published by developers through the App Store.

App extensions in the Today view are called widgets. Widgets give users quick access to information that’s important right now. For example, users open the Today view to check current stock prices or weather conditions, see today’s schedule, or perform a quick task such as marking an item as done. Users tend to open the Today view frequently, and they expect the information they’re interested in to be instantly available.

To read more follow this link - App Extension programming guide

460 questions
6
votes
6 answers

How to remove ios today extension from app

I've added today extension to my app (for test only) and now, I want to remove it. I've tryed to delete all files that seemd to be connected with extension, but when I run app again, extension is still available in today notification view... Can…
stepik21
  • 2,610
  • 3
  • 22
  • 32
6
votes
1 answer

iOS Today Extension - Share core data between

I have an app which uses core data and i'm trying to add a today extension to it which also access the data I have it set up so far and its able to access the data, but i'm having trouble with the classes for the entities. I get the following…
Ceri Turner
  • 830
  • 2
  • 12
  • 36
5
votes
1 answer

Today Extension with UICollectionView different behaviour compared to Single View Application

I try to add a collection view to a Today Extension with specifying the items per row of 3 items and also with setting the section insets for with 20 for top, left, bottom and right. When I do this in a Single View Application everything is like…
ronatory
  • 7,156
  • 4
  • 29
  • 49
5
votes
1 answer

Open url from Today Extension

I'm trying to open a deep link from my today extension widget to my main app with no luck. //ExtensionViewController.swift public func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { let url =…
nelsballs
  • 105
  • 1
  • 7
5
votes
1 answer

Change NCWidgetDisplayMode programmatically in IOS10 Widget

I am looking to programmatically change the height of a today extension. As the iOS10 SDSK introduced NCWidgetDisplayMode I am trying to use it to programmatically change the height of my preferredContentSize. I have implemented…
anto0522
  • 662
  • 9
  • 31
5
votes
2 answers

How to update today widget in swift every x seconds

I try to update the content of my today widget extension every x seconds since I try to realize something like a diashow. Therefor I have stored all required data using shared defaults. Loading data from the storage works perfect but the…
Florian Chrometz
  • 445
  • 2
  • 9
  • 22
5
votes
2 answers

Dynamic resizing today widget

I implemented an table view into my today widget. The tableView has no fixed number of cells. Because of this the height of the widget has to change dynamically. Does someone knows how I can find out the height of the tableView? If I know the height…
paro
  • 217
  • 3
  • 10
5
votes
2 answers

UIPasteboard string returning null from Today extension

It seems that in iOS 9/Xcode 7 beta 5, I am unable to access [[UIPasteboard generalPasteboard] string]; from my Today widget extension as every time no matter the contents, it returns (NULL). I looked through the release notes and I did not see…
user2284295
5
votes
2 answers

How to send and receive data in Today extensions

I want to develop an app for iOS that have a Widget for notification center, but I don't know how I should send and receive data (pass data) between View Controller and And Today Extension. I tried to use structs, but it doesn't work, and also I…
5
votes
1 answer

Use AppDelegate in today extension

I'm trying to build an today extension for my app. I'm using CoreData and NSFetchedResultsController and get the following error: Use of undeclared type 'AppDelegate' In this line of code: var appDel: AppDelegate =…
horst
  • 575
  • 1
  • 6
  • 15
5
votes
1 answer

"Waiting to attach" issue with Today Extensions

I've got a serious issue and can't figure out where is the problem ! First this question has already been answered in two other threads : iOS 8 beta 5 Today view extension (widget) stuck at Waiting to Attach BUT, my problem is different : I've got…
RomOne
  • 2,065
  • 17
  • 29
5
votes
3 answers

Xcode - failing to validate archive due to weird issues with resolving variables/placeholders in info.plist and entitlements

Something is really broken with my project or Xcode and I'm struggling since two days to figure out what is going on. My application is running perfectly fine, it is an OS X application and it contains a Today Widget extension. I finalized the…
udondan
  • 57,263
  • 20
  • 190
  • 175
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
4 answers

OS X Today Widget - How to detect in NCWidgetProviding.widgetPerformUpdateWithCompletionHandler if content has changed?

widgetPerformUpdateWithCompletionHandler() gives us the possibility to let the Notification Center know if the content of a Today Extension has changed. For example: func widgetPerformUpdateWithCompletionHandler(completionHandler: ((NCUpdateResult)…
udondan
  • 57,263
  • 20
  • 190
  • 175
5
votes
3 answers

Finding out if the device is locked, from a Notification Widget

I'd like to know if the device is locked when I'm loading my Notification/Today widget, so I can show the widget appropriately. (it's financial, and we don't want to show balances on a locked phone) On devices with TouchID, I can just try to access…
Nic Wise
  • 8,061
  • 2
  • 31
  • 30