Questions tagged [ios8-today-widget]

Refers to the "Today" widget in the notifications center of iOS devices.

Refers to the "Today" widget in the notifications center of iOS devices.

232 questions
70
votes
15 answers

Today Extension Failed to inherit CoreMedia permissions from

I am trying to add a Today Extension in Swift to my Objective-C app. I keep getting this message in my debugger log: Failed to inherit CoreMedia permissions from 3005: (null). The number ex. 3005 is different every time. I am reading from…
Shan
  • 3,057
  • 4
  • 21
  • 33
50
votes
3 answers

Today Extension height for iPad much larger than specified

My Today extension needs to have a dynamic height based on the contents the widget is displaying. I was able to achieve this by adding a constraint on my bottom-most element: bottom layout guide's top is less than or equal to the bottom most…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
47
votes
1 answer

How to use UIAutomation on a Today extension widget?

I am trying to use UIAutomation for testing an iOS 8 Today extension widget. I can change the target to the extension, launch it, but then unable to do anything after that. Has anyone had any success in using UIAutomation with the extensions?
Rohit Gupta
  • 757
  • 4
  • 7
43
votes
3 answers

Height of iOS8 Today Extension using Only Auto Layout Gives Broken Constraints

Apple documentation suggests setting the height of Today Extensions using autolayout. If a widget has additional content to display, you can rely on Auto Layout constraints to adjust the widget’s height as appropriate. If you don’t use Auto Layout,…
Ryan C.
  • 791
  • 1
  • 6
  • 9
20
votes
1 answer

iOS Swift Today Extension: import class from container app?

I have an app with a Today widget. I would like to use a model class from the container app in the TodayViewController.swift. Is such a thing possible? I copied the file into the Today Extension folder and tried to import it. No dice. I can't find…
MayNotBe
  • 2,110
  • 3
  • 32
  • 47
20
votes
1 answer

Debug info when run today extension

Got this debug info when debug a today extension app "host connection < NSXPCConnection: 0x170113560 > connection from pid 53 invalidated" does anyone know what this means? it shows almost every time when "widgetPerformUpdateWithCompletionHandler"…
Bobo Shone
  • 721
  • 6
  • 16
18
votes
3 answers

Detect whether run target is App Extension or iOS App

I have a simple app which also has a iOS 8 Today Extension (or widget). One of the things I am doing is sharing code classes between my app and my widget, because obviously this saves me from having to have multiple copies of the same code. It all…
user4657588
18
votes
3 answers

How to rename an iOS 8 Today Widget?

I've just started experimenting with adding an iOS 8 Today Widget to my app, it's going ok so far but I followed the original template and got my widget created with TodayWidget as its name. In the context of my app's files in Xcode that…
jimbobuk
  • 1,211
  • 12
  • 25
16
votes
1 answer

iOS in-app-purchase + Today Extension widget

So I have an app which requires a subscription (via an IAP), and it provides a Today Widget. Within the widget (as well as within the app) I use RMStore to check the App Receipt in the bundle for an active subscription. It works fine in the…
DanM
  • 7,037
  • 11
  • 51
  • 86
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
4 answers

coredata - move to app group target

I am new to the Today extension and using an embedded framework. Our app currently uses core data backed by sqlite. If I want to share this between the app and the today extension, should I move this to a framework to be shared by both? How can…
Jason Hocker
  • 6,879
  • 9
  • 46
  • 79
13
votes
3 answers

"This app contains an app extension with an illegal bundle identifier" issue

I'm a bit mixed up, since I changed the app name, Bundle Display name, and Bundle identifier name...and now my app works properly, but my today widget won't. Whenever I try to run today widget, it builds successfully, but instead of being launched,…
13
votes
2 answers

Today Extension view flashes when redrawing

According to Apple documentation, "To help your widget look up to date, the system occasionally captures snapshots of your widget’s view. When the widget becomes visible again, the most recent snapshot is displayed until the system replaces it with…
christopherdrum
  • 1,513
  • 9
  • 25
12
votes
3 answers

iOs Widget background update

According to what apple says about widgetPerformUpdateWithCompletionHandler:, the iOs Widget can update his content also when the widget is not visible. In my debug session i've noted that the todayViewController is deallocated everytime the…
1
2 3
15 16