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
0 answers

Xcode El Capitan Extensions not Compatible with Yosemite

So i have built a finished app using xcode 7.1 and el capitan, it works fine when running on el capitan but the today extension doesnt work on yosemite. If i take the exact same project and build it on xcode using yosemiti then it works fine on both…
Eli
  • 668
  • 2
  • 13
  • 37
0
votes
1 answer

Setting detailTextLabel in TodayExtension's TableViewCell failed

I try to display a text in the detailTextLabel of the tableView in my today extension. The code seems to be correct, but I don't know why it's not displayed in the cell. I set the text like in the normal tableView in the iOS app ( …
0
votes
1 answer

display bash result in os x notification center today widget

Suppose I want to display the mouse battery level in a today widget in os x notification center. The bash command ioreg -c BNBMouseDevice | grep BatteryPercent | sed 's/[a-z,A-Z, ,|,",=]//g' | tail -1 | awk '{print $1}' gives the string to be…
egwene sedai
  • 403
  • 1
  • 4
  • 16
0
votes
1 answer

Today Extension view re-adjusts itself after view appears. iOS Swift

From the storyboard, I set constraints: 1) Leading space to: Superview = 0 2) Trailing space to: Superview = 0 When today extension loads, there is this little margin offset in the beginning, then disappears after done showing the view. Then after…
Joon. P
  • 2,238
  • 7
  • 26
  • 53
0
votes
1 answer

Why tapping a button in Today Notification Widget causes whole view move to left?

I make a Today Notification Widget and I use AutoLayout. When I press a number button, whole view moves to left. I cannot figure out why. Why view moves left when I tap a button? Is it from AutoLayout or is a general problem? Before touch After…
Silviu St
  • 1,810
  • 3
  • 33
  • 42
0
votes
1 answer

How to pass UIImage to Today Extension in iOS, swift?

Is there a way to pass UIImage over to Today Extension using NSSharedDefaults in such way? : if let sharedDefaults = NSUserDefaults(suiteName: "group.example.TodayExtension") { // Below line crashes, since .setObject cannot have UIImage as a…
Joon. P
  • 2,238
  • 7
  • 26
  • 53
0
votes
1 answer

CocoaPods on Today Extension

I have a project written in Swift with CocoaPods installed. The project have a Today Extension and I added some Pods to this Target. So far so good. Running on Simulator it's okay! But running on device I got this error: dyld: Library not loaded:…
0
votes
1 answer

How to call a method in the parent iPhone app from Today Extension in Swift?

I have just created an Apple Watch extension to my iPhone App and used the following method to update my app data. // Call the parent application which launches a method to update the app data WatchViewController.openParentApplication([:], …
andreas
  • 7,844
  • 9
  • 51
  • 72
0
votes
1 answer

How to re-use Core Data in Extension code in Objective-C? The managedObjectContext can't be created by UIApplicationDelegate as we use to do

The problem I meet is we can't get the managedObjectContext by this way: [((MDAppDelegate*)appController) mainQueueContext] ; Because the error message is: 'sharedApplication' is unavailable: not available on iOS (App Extension) - Use view…
Yi Jiang
  • 3,938
  • 6
  • 30
  • 62
0
votes
1 answer

self.extensionContext!.openURL open app but calls no method

I am trying to wire the Today extensions to my app by using the following piece of code: override func tableView(tableView: UITableView, accessoryButtonTappedForRowWithIndexPath indexPath: NSIndexPath) { let…
Fabrizio Bartolomucci
  • 4,948
  • 8
  • 43
  • 75
0
votes
1 answer

Parse In Today Extension "Mach-O Linked Error"

I am using Parse in my main application "App Delegate" but I also need to use it in my Today App Extension (Widget). So I have added all the necessary frameworks to my app extension, as well as made a bridging header for parse to my app extension,…
Vishnu Murale
  • 173
  • 14
0
votes
1 answer

widgetPerformUpdateWithCompletionHandler called just once

I am implementing a today extension where I take some time to load the needed information, yet I found widgetPerformUpdateWithCompletionHandler is called just once finding no data and never afterwards to find the updated data; this is the piece of…
Fabrizio Bartolomucci
  • 4,948
  • 8
  • 43
  • 75
0
votes
0 answers

Today Extension and container app

Can anyone tell me if it's possible to update in real time the widget without open the container app. I have a string in my app that I store in NSUserDefaults, if I open the app, this string is changing at every 5 seconds and If at the same time I…
Dan Paschevici
  • 961
  • 2
  • 10
  • 22
0
votes
1 answer

Today Extension deleting data in sqlite

I have added a Today Extension in my existing app and setup a separate core data stack(reusing the same code which is used to setup core data for the main app). My app data gets deleted when I run the Today extension as if setting up of Today core…
Puneet Sharma
  • 9,369
  • 1
  • 27
  • 33
0
votes
1 answer

Add App Group entitlement

I'm trying to build an existing application that provides a Today widget. Unfortunately I cannot make the app to communicate with the widget. In the Capabilities section I get the following errors I've installed appropriate provisioning profiles…
marvin_yorke
  • 3,469
  • 4
  • 25
  • 35