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

Is it possible to refresh a timer in a Today Widget?

I was wondering is it possible to update the text label of a timer in a today widget. I took a look around but nothing helped me.
Nicholas
  • 1,915
  • 31
  • 55
9
votes
3 answers

Dragging Gestures in iOS 8 Today Extensions

I'm using a UIView subclass in my Today widget. The view makes use of swiping gestures. However, these gestures either scroll the whole Notification Center up and down, or make the Notification Center switch from Today to Notifications. Is there any…
Raffael
  • 1,119
  • 10
  • 20
8
votes
3 answers

TodayWidget built correctly but com.apple.springboard running

My todayWidget was developed for iOS 8 (and worked on it) and was a very simple todayWidget that only fetch data from a server in the widgetPerformUpdateWithCompletionHandler method, and print it. When I updated my project from Xcode7 to Xcode8 and…
brosini
  • 169
  • 6
8
votes
2 answers

XCUITest and Today Widget

I have an App with Today Widget. So I would like to perform some UI testing on it. I found a way to open Today/Notifications panel. It seems easy: let statusBar = XCUIApplication().statusBars.elementBoundByIndex(0) statusBar.swipeDown() But then I…
8
votes
1 answer

Xcode Today Extension stuck on "Failed to inherit CoreMedia permissions" error

i'am trying to add an app extension to my project (Today Extension). Things that i've made so far: Enable "App Groups" from both main application and extension capabilities. Checked that both targets "Team" profiles are valid. (even deleted them…
dreampowder
  • 1,644
  • 3
  • 25
  • 41
8
votes
3 answers

MagicalRecord (CoreData) + Today Extension (iOS8)... Will They Play?

Hoping you can help. I'm adding Today support to my app, which uses MagicalRecord https://github.com/magicalpanda/MagicalRecord to managing all my CoreData stuff. I'm tearing my hair out trying to understand how to surface my data into the Today…
8
votes
1 answer

Main app assets catalog copied in today extension

When I added a Today Extension my app suddenly gained a lot of weight... so I did a rapid checkup to see where that fat is coming from. It look like the .apex is 13MB, the 'Assets.car' file is the even bigger than the one in my main app (+8MB). The…
Dimillian
  • 3,616
  • 4
  • 33
  • 53
7
votes
1 answer

iOS - Notify today extension for Core Data changes in the main app

I have a NSManagedObject called Event that is shared between the host app and today extension. (In Target Membership, both the main app and the widget are checked). The host app and widget have the same App Group identifier and both share Data…
mahan
  • 12,366
  • 5
  • 48
  • 83
7
votes
4 answers

Can we use SwiftUi to build iOS Today Extension?

I want to use Swift UI to build iOS's Today Extensions, but I don't know how to get started.
Lxxyx
  • 775
  • 1
  • 7
  • 10
7
votes
4 answers

How to open Specific View controller on Widgets/ Today Extension click

I am trying to open specific view controller on widgets click , but can not able to open it , i am able to open app using url schema but i want to open specific view controller how can i do this, here is code for open app using url schema…
Asmita
  • 477
  • 8
  • 20
7
votes
1 answer

Today widget in iOS 10 is not expanding

I'm trying to solve an issue with my today widget. It's not expanding on iOS10 after pressing "Show more" button. It's size keeps the same all the time. Here is the code for TodayViewController.swift import UIKit import NotificationCenter class…
Martin Pilch
  • 3,245
  • 3
  • 38
  • 61
7
votes
2 answers

fetching from Coredata in ios app widget extension in ios 10

Im trying to fetch entities from my coredata database of my main app and display them in my apps widget Extention. However the fetch always returns an empty results from my database. Can ayone help me out. Swift 3, ios 10.
7
votes
2 answers

iOS today extension causes Program ended with exit code: 0

I'm using Xcode 8.0, Swift 3. I'm making today extension showing text and image, but frequently cause this message and today extension does not work. rarely work. Program ended with exit code: 0 I saved data in realm, and today extension using the…
Dev.MJ
  • 95
  • 8
7
votes
1 answer

Dynamically change title of Today Widget?

Is it possible to dynamically change the title of the Today Widget? I'd like to add the users current location next to the app name of the widget title, so it will change constantly per user for all users. Is this possible?
TruMan1
  • 33,665
  • 59
  • 184
  • 335
7
votes
2 answers

Check if URL can be opened from an iOS today widget

My problem is that I can't find out if a certain URL can be opened from an iOS widget. The method canOpenURL: is not available on today's widget because there is no UIApplication class. Moreover the method openURL: of NSExtensionContext returns YES…
andreacipriani
  • 2,519
  • 26
  • 23
1 2
3
30 31