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

iOS - Share a Today Extension with multiple app targets?

I have a project with multiple app targets (about 25). I'm going to make a Today Extension for those apps but I don't want to create about 25 extensions with the same code and configuration. Is it possible to create only one Today Extension that I…
David Ansermot
  • 6,052
  • 8
  • 47
  • 82
16
votes
1 answer

NSUserDefaultsDidChangeNotification and Today Extensions

I am developing an iPhone app with a Today Extension. The app has a Model module that loads from/saves toNSUserDefaults. Since I want this information to be available to both the main app and the extension, I use an app group: let storage =…
Alex
  • 5,009
  • 3
  • 39
  • 73
16
votes
4 answers

Today Extension Crashes before launching on iOS 8.1.2

I've been making a today extension that downloads articles from a feed and display the latest ones. The whole thing worked fine on iOS 8, still worked on iOS 8.1, then came iOS 8.1.2 and we started having complaints about the today extension not…
Marc_V
  • 191
  • 1
  • 8
14
votes
1 answer

Profiling iOS Today Widget (Instruments)

is that a way to analyze other targets in Instruments? I am trying to profile my widget target there but Instruments keep displaying a dialog saying "please take appropriate action to initiate the launch of com.appId.widget". Any ideas?
marcelosalloum
  • 3,481
  • 4
  • 39
  • 63
12
votes
3 answers

How to add Firebase to Today Extension iOS

I need to be able to use Firebase in my Today View Extension, however I cannot seem to import the Firebase module. I think it's because I need a new target in my cocoa pods file, but I'm not sure on how to do this. Thanks.
Eli
  • 668
  • 2
  • 13
  • 37
11
votes
6 answers

Hide "Show More" button from Today widget in iOS10

I am building an iOS Today widget, and while testing for iOS 10, I see a "Show More" / "Show Less" button on the top right of the widget header. How can I remove this button? I am using Objective-C.
Gison George
  • 379
  • 1
  • 3
  • 15
11
votes
2 answers

Access the settings.bundle from today-extension

In the app I can choose in the settings which language of three should be used. If nothing is selected, the iPhone language is detected and selected for english, french or german. If none of this languages is the iPhone language, english is set to…
Christian
  • 506
  • 4
  • 14
10
votes
1 answer

How do I use CLLocationManager in an OS X Today Extension?

I'm trying to get the user's location in a Today Extension and I'm hitting a dead end. On an OS X app, when you call locationManager.startUpdatingLocation(), a dialog pops up asking if you want to let the app use your location. In the Today view,…
Rikki Gibson
  • 4,136
  • 23
  • 34
10
votes
1 answer

Today Extension on Universal applications

How can I create a storyboard that works well on both iPad and iPhone for a Today Extension? Can I use size classes? There are other methods? Thanks in advance
Andrea Mario Lufino
  • 7,921
  • 12
  • 47
  • 78
9
votes
1 answer

iOS - Today extension widget cleared over time

Situation as it should be We have a today widget that shows a maximum of 6 buttons depending on data set in the corresponding app. This data is shared using app-groups. If at least one button is configured it will show up as shown in the image…
Remy Kabel
  • 946
  • 1
  • 7
  • 15
9
votes
2 answers

iOS 10 Today View Widget: How to tell if it's *actually* on screen / visible?

I have a widget which retrieves updates from a server at regular intervals throughout the day, but want it to immediately update again if the user actually looks at it. This always worked fine in iOS 8/9... viewWillAppear fired specifically when,…
DanM
  • 7,037
  • 11
  • 51
  • 86
9
votes
2 answers

Today Extension: How to work with display mode?

Widgets now include the concept of display mode (represented by NCWidgetDisplayMode), which lets you describe how much content is available and allows users to choose a compact or expanded view. How to expand widget in ios 10.0? It doesn't work as…
Vladius001
  • 720
  • 1
  • 6
  • 11
9
votes
2 answers

Today Widget Not Showing on Device

This problem is very strange, my Today widget work smoothly in Simulator but in my device (iPhone 5) is only showing the header of the Widget with the icon and the title. I have read those questions but didn't solve my problem: Today Widget Not…
yannisalexiou
  • 605
  • 12
  • 25
9
votes
3 answers

Today Widget on OS X not working

I can't seem to get my Today widget (or any extension for that matter) running in the Widget Simulator. The simulator launches and says "Couldn't Open Widget" along with Failed to find Widget…
strangetimes
  • 4,953
  • 1
  • 34
  • 62
9
votes
1 answer

Strange NSInternalInconsistencyException and PKService crash in iOS Today Extension

I installed Crashlytics on my iOS Today Extension, and I am getting this strange crash. Does anyone know why this might be happening? Fatal Exception: NSInternalInconsistencyException removing inactive plug-in …
d0nutz1
  • 417
  • 6
  • 19
1
2
3
30 31