ios8-today-widget

iOs today extension do not launch - lost connection to device

五迷三道 提交于 2019-12-02 01:17:42
问题 I created a today extension for my app and it works fine on my mobile, however if I try to launch the widget target on any other device I get this error I run xcode 6.0.1 回答1: Couple of things I would check: Code signing / provisioning profiles are correct The supported architecture is standard arch i had an issue with this. From the docs: A containing app that links to an embedded framework must include the arm64 https://developer.apple.com/library/ios/documentation/General/Conceptual

iOs today extension do not launch - lost connection to device

拜拜、爱过 提交于 2019-12-01 21:20:38
I created a today extension for my app and it works fine on my mobile, however if I try to launch the widget target on any other device I get this error I run xcode 6.0.1 Couple of things I would check: Code signing / provisioning profiles are correct The supported architecture is standard arch i had an issue with this. From the docs: A containing app that links to an embedded framework must include the arm64 https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html I changed my widget config from this to this and it works now 来源: https:/

Use AppDelegate in today extension

旧街凉风 提交于 2019-12-01 20:05:46
I'm trying to build an today extension for my app. I'm using CoreData and NSFetchedResultsController and get the following error: Use of undeclared type 'AppDelegate' In this line of code: var appDel: AppDelegate = UIApplication.sharedApplication().delegate as AppDelegate. Does someone know how to solve this error / use AppDelegate in the today extension and would like to help me? A Today Extension isn't an application, so UIApplication and AppDelegate aren't available. I'm not for sure what you are trying to do with the AppDelegate, but extensions do have a NSExtensionContext available by

Today Widget Not Launching On Device(works on Simulator)

流过昼夜 提交于 2019-12-01 17:07:18
问题 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 checked in Do Not Include section and it's not there either. I've searched a lot and most of the people has three type of problems: Missing 64 bit architecture. My configuration is: Different app and extension prefix - mine are exactly the same(of

Today Extension widget freezes when the main app is updated

為{幸葍}努か 提交于 2019-12-01 01:32:50
I am suffering from Today Extension freezing issue when the main app is updated. In detail, I recently found that Today Extension freezes after updating the main app from Crashlytics Beta service. After that, all of touchable things like a button does not work. I tried to reinstall the widget by setting menu supported by Today but failed. The only way to solve this symptom is rebooting iPhone device. You know, however, this is not proper solution. What makes the widget freeze after updating a main app? 来源: https://stackoverflow.com/questions/29937104/today-extension-widget-freezes-when-the

Today Extension widget freezes when the main app is updated

余生颓废 提交于 2019-11-30 20:06:40
问题 I am suffering from Today Extension freezing issue when the main app is updated. In detail, I recently found that Today Extension freezes after updating the main app from Crashlytics Beta service. After that, all of touchable things like a button does not work. I tried to reinstall the widget by setting menu supported by Today but failed. The only way to solve this symptom is rebooting iPhone device. You know, however, this is not proper solution. What makes the widget freeze after updating a

iOs Widget background update

拟墨画扇 提交于 2019-11-30 13:02:23
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 notification center view disappear, so my questions are: How my todayViewController can respond to widgetPerfomrUpdateWithComplationHandler if it is deallocated ? I need that every hour the widget update his content also if it is not visible, how can i do that? How is the iOs widget lifecycle? Help me please :) Thanks The widget life-cycle is managed by

“This app contains an app extension with an illegal bundle identifier” issue

喜欢而已 提交于 2019-11-30 07:25:59
问题 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, it says This app contains an app extension with an illegal bundle identifier. App extension bundle identifiers must have a prefix consisting of their containing application's bundle identifier followed by a '.'. However, I checked Info.plist and my

Scheduling local notification from within a Today extension

时间秒杀一切 提交于 2019-11-30 06:46:53
问题 I'm making an app that contains a Today Extension. The today extension displays a list of timers, and if the user selects one of the timers, I'd like to create and schedule a local notification for that timer. My problem is that scheduling of notifications is done with this line of code: UIApplication.sharedApplication().scheduleLocalNotification(notification) which very unfortunately relies on UIApplication.sharedApplication() that is not accessible from an extension. So my question is: How

iOs Widget background update

江枫思渺然 提交于 2019-11-29 18:43:23
问题 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 notification center view disappear, so my questions are: How my todayViewController can respond to widgetPerfomrUpdateWithComplationHandler if it is deallocated ? I need that every hour the widget update his content also if it is not visible, how can i do