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

Today extensions(Widget) can't show on iPhone5s

My app contains a Today Extensions(Widget), but it can not show on iPhone5s, and any other devices can show normally. Platform: xcode6 Beta5, iOS Beta5.
cleexiang
  • 149
  • 2
  • 7
0
votes
1 answer

iOS 8 Today Interface Builder

I've programatically set the width and height of my Today widget, and those changes are reflected when I run my app on my phone. However in my storyboard, the height has not changed (so I can't really position objects properly). How can I set the…
chris
  • 4,840
  • 5
  • 35
  • 66
-1
votes
1 answer

Is it possible to run WidgetKit code in iOS 13?

I'm creating a project that has a requirement of having a Widget. My project is created using Xcode 12.4, the minimum iOS version supported by my iOS App is iOS 13, hence my App's target deployment iOS version is iOS 13. Since WidgetKit is available…
-1
votes
1 answer

How can I add different contents in today extension?

How should I add different contents in Today extension? (just like native weather). for example: Above view is UITableview and bottom view is webview Thanks!
W h-c Chen
  • 48
  • 5
-1
votes
1 answer

NCWidgetDisplayMode not set to .expanded in iOS 10

I know this type of question has been asked before, but none of them is able to solve my problem. I want to set the Today's Extension height to be variable. For this I have included the below code as suggested in related posts: override func…
PGDev
  • 23,751
  • 6
  • 34
  • 88
-1
votes
1 answer

Cannot create an SQL store with a nil URL

So I am trying to create a today widget extension using the data stored by the parent app. I am trying to do so by creating a Persistent Store Coordinator as you do in parent app and using the URL for the main app database. However when doing so I…
RileyDev
  • 2,950
  • 3
  • 26
  • 61
-1
votes
1 answer

Weird UIButton behaviour in Today Widget

I added a today extension to my app. I edited the vanilla widget a little bit and made it look like this: Please notice the UIButton titled "Went 1st". When it gets pressed (touched up inside to be exact), it triggers this action: @IBAction func…
Eugleo
  • 418
  • 4
  • 11
-1
votes
1 answer

What action is invoked when today widget center is being closed?

I need to find the way to respond to notification centre being closed/hidden. The reason is that I have a pop up NSMenu in that widget, and if you open it and then close entire notification centre, pop up menu remains on the screen. I have already…
-1
votes
1 answer

Where to update the UI of a notification widget just once

In my Notification Center Today Extension/Widget I need to update a portion of the UI every time Notification Center is activated. It never needs to update while Notification Center is in use, nor while it's in the background. In what method should…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
-2
votes
1 answer

How do I use JavaScript code to delete calendar items once they have passed?

I use this HTML code to display my events