FAQ Database Discussion Community


how to localize today extensions widget?

ios,ios8,widget,ios8-today-widget,today-extension
our application has been support mutli region and languages,when i development today extensions widget and read App Extension Programming Guide still can't found a localize soluction. even if i created the Localize.strings file like a normal xcode project,define Localize.String File like: "scene_people_liked"="%d people like"; and use : #define NSLocalizedString(key, comment)...

iOS Swift Today Extension: import class from container app?

ios,swift,ios8-today-widget,today-extension
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 an answer in...

iOS Today Widget will not install on iPhone 4 running iOS 7.1, but works on other devices

xcode,ios7.1,today-extension
Just created a Today Widget using XCODE 6.3.1 and have it working on a MINI running iOS 8.3. When we try and install it on an iPhone 4 running iOS 7.1, it does not install or run and XCODE reports "Finished Running" with no errors etc. We will be checking...

iOS Today Widget with custom font terminated due to memory error

ios,ios8-today-widget,today-extension
Today Widget We have an iOS 8+ app that uses a custom font. The TTF file is bundled with the app. We are now in the process of making a today widget (extension) that needs to use the same custom font in order to properly show the contents. The TTF...

iOS Today Extension keeps crashing on iPhone, not in simulator

ios,objective-c,iphone,ios8-today-widget,today-extension
I'm trying to build an iOS Today Extension that shows three images with some text. In the simulator it runs fine, but when I run it on my iPhone, it flashes three times and then displays Unable to Load. What am I doing wrong? TodayViewController.m #import "TodayViewController.h" #import <NotificationCenter/NotificationCenter.h> #import...

Issue in Widgets in landscape mode

ios,swift,ios8,ios8-today-widget,today-extension
I have this irritating issue with widgets that it trims the content of my view in the landscape mode. I have put the content size statically but it doesn't work. Does Apple restrict the widget to have a specific height in landscape? Apple's interface guidelines says it's not recommended but...

NSExtensionContext openURL not working on Mac OS X Today Widget

objective-c,osx,cocoa,today-extension
No matter what I do, the following code just returns 'Success: 0' (i.e., it won't launch the hosting app): NSURL *url = [NSURL URLWithString:@"myapp://launch"]; [[self extensionContext] openURL:url completionHandler:^(BOOL success) { NSLog(@"Success? %i", success); }]; If I try the myapp://launch URL directly in Safari, it works and launches my app. However...

Is there any way to install iOS extension without installing the container application?

ios,today-extension,ios-extensions
I want to implement a today extension only, that is, for this I don't want to create an application for doing this. Is there any way to install a today extension only, without installing the container app? Please help.

It is possible to delay the execution of a function on Today Extensions (iOS)

ios,swift,ios8,ios8-today-widget,today-extension
I want to delay the execution of a method inside a framework that gets loaded from within a Today Extension. I have tried this: A function that receives the task and the time to wait func playCPUWithDelay(delayInMilliSeconds:Int64,scheduledTask: ()->Void) { let popTime = dispatch_time(DISPATCH_TIME_NOW,delayInMilliSeconds) // 1 dispatch_after(popTime, GlobalMainQueue) { // 2...

Today extension crashing with NSNotificationCenter

ios,swift,nsnotificationcenter,today-extension
I'm creating a today extension that grows/shrinks to save space. in the Notification Center, but I am having problems with the NSNotificationCenter. If I call the visibility() function, the view shrinks and grows normally, but if I try posting a notification, the extension fails and attempts to reload instead(at least...

Add App Group entitlement

ios,ios8-today-widget,today-extension
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 and I've double-checked that the App ID in DevCenter includes App Groups. Fix...

iOS in-app-purchase + Today Extension widget

ios,in-app-purchase,ios8-today-widget,today-extension,rmstore
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 sandbox, including when...

How can I access core data details from Today Extensions(iOS 8)?

ios,iphone,xcode,core-data,today-extension
I want to access some core data details from Today Extension. 1) Is it possible to access core data details from Today Extension(iOS8) ? 2) How do I access the core data details ? Please give some ideas and suggestions....

Xcode - failing to validate archive due to weird issues with resolving variables/placeholders in info.plist and entitlements

xcode,validation,itunesconnect,today-extension
Something is really broken with my project or Xcode and I'm struggling since two days to figure out what is going on. My application is running perfectly fine, it is an OS X application and it contains a Today Widget extension. I finalized the project recently and now I'm unable...

Todayview openurl - calls didFinishLaunchingWithOptions multiple times

ios,ios8-today-widget,today-extension
i am currently playing arround with an ios8 todayview extension. i call [self.extensionContext openURL:url completionHandler:nil]; to open the app containing the extension. in some cases: about 1 out of 10 launches (app closed) - the - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions gets called more than once. i tried working arround with...

send data displayed in today notification(Today extension) to appdelegate method

ios,today-extension
I am using today extension I have displayed the list of events in tableview today notification. while click on selected row event i want to send in appdelegate method when click select row I am navigating in my app and call method openurl but i cann't get selected event in...

“Waiting to attach” issue in iOS 8 with Today Extensions

ios,widget,today-extension
I've got a serious issue and can't figure out where is the problem ! First this question has already been answered in two other threads : iOS 8 beta 5 Today view extension (widget) stuck at Waiting to Attach BUT, my problem is different : I've got 10 widgets, and...

NSUserDefaultsDidChangeNotification and Today Extensions

ios,swift,nsuserdefaults,ios8-today-widget,today-extension
I am developing an iPhone app with a Today Extension. The app has a Model module that loads from/saves to NSUserDefaults. Since I want this information to be available to both the main app and the extension, I use an app group: let storage = NSUserDefaults(suiteName: "group.etc.etc.etc...") Both the app...