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
7
votes
2 answers

Core Data move data into shared container

I have an already published app that use core data. Now I want to add support for watch kit and today extension. I need to move core data into shared container without lose previous user saved data, how can I do that in the best way?
7
votes
1 answer

iOS today extension not showing

I'm developing a today extension and it works fine on simulator, but when I run my app on device it doesn't work. App works fine but extension it doesn't show so that I can add it to drop down with other extensions(like it doesn't exists). Can…
user67855
  • 101
  • 1
  • 3
7
votes
2 answers

Setting fixed height for iOS8 today extension using auto layout

I am trying to implement a simple today widget which contains a single label with fixed height. In the documentation it says: If a widget has additional content to display, you can rely on Auto Layout constraints to adjust the widget’s height as…
kbtombul
  • 489
  • 3
  • 10
6
votes
2 answers

iOS - How to add "Today Extension" target in Xcode 12.1?

I'm using Xcode 12.1 12A7403, and when I go to Editor > Add Target, the option to create "Today Extensions" using Storyboards no longer exists, but instead, there is only the option to create "Widget Extensions" using SwiftUI. Is there a way to…
Hykilpikonna
  • 1,749
  • 2
  • 15
  • 32
6
votes
2 answers

iOS today extension with core data

I am trying to make a today extension for my ios app. That today extension will display the 'next' Course based on data saved with core data. I've been doing some research and I understand I have to share my persistentContainer with an appGroup. So…
6
votes
3 answers

How to open "Add Widgets" View From App

My App is supported Today Extension, I want to add a button to my app's settings view, so when the user clicks on it I switch the user to "Add Widget" view, i.e this view: so the user can add the desired widget. Is there a way to do that? or it's…
Rawan
  • 1,589
  • 4
  • 23
  • 47
6
votes
0 answers

iOS 10, bluetooth connection from today extension / widget

I´m having an App with a Today Extension/Widget. This Widget has a CBCentralManager to scan for peripherals and connect to them. The scanner works fine but connecting to the device sometimes works and sometimes get´s stuck at connecting. The led at…
StephanD
  • 141
  • 1
  • 9
6
votes
1 answer

How to pick one from multiply widgets for home screen using 3d touch?

When I was using only one today widget it was very simple and was like this: Now I added a second today widget to my app, and it is like this: Why it disappeared? What is wrong? Shouldnt be there two today widgets? Can I decide what widget should…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
6
votes
1 answer

Widget Simulator: ignored in restricted program because of @executable_path

Has anyone come across this error before? Its happening when I run the Widget Simulator on my today extension. dyld: warning, LC_RPATH @executable_path/../Frameworks in…
the Reverend
  • 12,305
  • 10
  • 66
  • 121
6
votes
2 answers

Layout Constraint Conflicts in Default Today Widget

I have observed a very strange behavior regarding Autolayout in the Today Widget I just created for my app. Trying to get to the root of the problem I ended up creating a plain new Xcode project (single view app) and added a Today Extension as a new…
Mischa
  • 15,816
  • 8
  • 59
  • 117
6
votes
1 answer

Send message from iOS Today Widget to app

I have an alarm app, recently powered it with a today widget extension. I need to turn on and off alarm from today widget, but the code to "turn on" and "turn off" is within app, not widget. How can I send a message from today widget to main app?
AVEbrahimi
  • 17,993
  • 23
  • 107
  • 210
6
votes
2 answers

iOS 9 Today Widget not calling viewDidLoad

The today widget is drawn correctly when it is added to the today view. But if you user comes back to it later, the viewDidLoad function is not called and it is showing stale data. Should viewDidLoad be called everytime? Is there an iOS 9 / Xcode…
Jason Hocker
  • 6,879
  • 9
  • 46
  • 79
6
votes
2 answers

Open main app via today extension

I implemented added a today widget into my app. The today extension includes an UITableView. Now I'd like to open the app if a cell of the UITableView has been pressed. Does someone of you know how to do this?
paro
  • 217
  • 3
  • 10
6
votes
1 answer

Today Widget Not Launching On Device(works on Simulator)

Hi I have very strange problem. My Today Widget works perfectly fine in Simulator, however when I choose to run it on real device and select 'Today' application xCode just says 'Running Today on XXX's iPhone' but on that device there is no widget. I…
hris.to
  • 6,235
  • 3
  • 46
  • 55
6
votes
1 answer

iOS Today Extension: can this be dynamically enabled and disabled from within my app?

By default, a today extension appears in the extension list for my app as soon as the app is installed. What I'd like to know is - is there a way, documented or undocumented, that this can extension be enabled or disabled dynamically? By disabled,…
Jordan Smith
  • 10,310
  • 7
  • 68
  • 114