Search results for

Request failed with http status code 503

190,641 results found

Post

Replies

Boosts

Views

Activity

Reply to Is there any way to keep a watch app active in watchOS 2?
By the sounds of it yes!The HKWorkoutSession class describes the properties of a workout session. Workout sessions let apps continue to run in the foreground. The app appears whenever the user wakes the device, unless the user dismissed the app by pressing the crown. This lets the user check on the status of the workout by simply raising their wrist.https://developer.apple.com/library/prerelease/watchos/documentation/HealthKit/Reference/HKWorkoutSession_ClassReference/
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Xcode Upgrade
Hello Developers,I just updated to Xcode 7 and opened up my project which i started a couple months ago on 6.3 using Swift. I'm now getting hundreds of error codes, some of them i have never herd of, anyone know why?
1
0
421
Jun ’15
Reply to Xcode Upgrade
Yes, this happened with my app too and this is expected due to the change to swift 2.0 and ios 9 API changes. You will need to read through the errors and resolve them with the help of research and reading through apple documentation. I would suggest also looking at the swift 2.0 prerelease ibook. Helpful links-https://developer.apple.com/library/prerelease/ios/navigation/https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS9.html#//apple_ref/doc/uid/TP40016198-SW1https://developer.apple.com/library/mac/documentation/Swift/Conceptual/Swift_Programming_Language/OptionalChaining.html#//apple_ref/doc/uid/TP40014097-CH21-ID245https://itunes.apple.com/us/book/swift-programming-language/id1002622538?mt=11
Jun ’15
Implementing trial period for auto-renewing subscriptions
I need a guide for adding trial period option for iOS app auto-renewing subscription without using separate server.The thing is that different time period options inside one auto-renewing group of items have separate IDs, however there is no ID for trial period. How can I request it from out my app after user presses Trial period button.There are no descriptions on Developer Forums and on other websites, no examples as well, so I don't know how to implement this.P.S.: I use RMStore to cover transaction APIs.Here is how the code approximately looks:- (void)performRequestForProduct:(NSString *)productID completionBlock:(void(^)(BOOL success))func { NSSet *productIdentifiers = [NSSet setWithObjects:kInAppIDUltimate, kInAppIDPremium1Year, kInAppIDPremium1Month, kInAppDonationBundleID, nil]; [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES]; [[RMStore defaultStore] requestProducts:productIdentifiers success:^(NSArray *products, NSArray *invalidProducts) { if (invalidProdu
1
0
866
Jun ’15
two installs with one user
its posible to install the osX el capitan in two macs with the same developer user?Yesterday, i download the installer in my imac, but i dont install in it.i think is best install in my MBP for TEST.But today when i try to download, in MBP, i can,t. the code is in use.Sorry for my english....
2
0
285
Jun ’15
Swift 2.0 deployment target 7.1
I have a very small Swift 2.0 project which should run on 7.1 and newer.It should use WKWebView on iOS > 8.0 and UIWebView on iOS < 8.0.As soon as I add the WKWebView I can't compile the app again:import UIKit import WebKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() if #available(iOS 8.0, *) { let w = WKWebView() w.frame = self.view.frame w.autoresizingMask = [UIViewAutoresizing.FlexibleWidth, UIViewAutoresizing.FlexibleHeight] self.view.addSubview(w) } else { let w = UIWebView() w.frame = self.view.frame w.autoresizingMask = [UIViewAutoresizing.FlexibleWidth, UIViewAutoresizing.FlexibleHeight] self.view.addSubview(w) } } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() } }When I compile for the simulator I have no problems at all, but when compiling for devices I get the following warning:ld: warning: URGENT: all bitcode will be dropped because '/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/
5
0
2.9k
Jun ’15
Weak life cycle
I wrote a small class extension for UITableViewRowAction, while doing my Unit Test I've notice that the instance created with the extension 'init' method were alive longuer that I would have expected.So I've trim down the implementation to the bare minimum to test that difference.public extension UITableViewRowAction { public convenience init(title: String!, style: UITableViewRowActionStyle, exposedHandler: (UITableViewRowAction!, NSIndexPath!) -> Void) { self.init(style: style, title: title, handler: exposedHandler) } } class UITableViewRowAction_test: XCTestCase { func test_deallocationOfStoredItems() { weak var a1 : UITableViewRowAction? weak var a2 : UITableViewRowAction? if true { var action : UITableViewRowAction? action = UITableViewRowAction(title: title, style: .Normal) { (a: UITableViewRowAction!, b: NSIndexPath!) -> Void in } a1 = action action = UITableViewRowAction(style: .Normal, title: title, handler: { (a: UITableViewRowAction!, b: NSIndexPath!) -> Void in }) a2 = action println(here
0
0
249
Jun ’15
Reply to iOS 9 Beta battery life
Everyone knows Mat is correct. This happens every single year, and people still mindlessly update their only device and complain despite knowing it's only beta 1. Metrics are being gathered, Siri is probably indexing, and likely little to no effort has gone into optimization of code or battery life. Complaining here because you needed to say something isn't really helpful to anyone, so don't get all offended when you receive responses reminding you that there should be no expectation at all regarding performance or battery life in the early betas. Battery life usually starts improving after beta 2 or 3. I hope that some of this may be due to indexing and that it improves for you soon, but you may want to reset your expectations if it doesnt.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
60 MB limit for executable
The iTunes Connect Developer Guide section on submitting the app (https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/SubmittingTheApp.html)statesiOS App build files can be as large as 4 GB, but each executable file (app_name.app/app_name) must not exceed 60 MB.We are building an app using Unity and with the addition of 64bit support our executable file is about three times that much (assume that is uncompressed). Is this still a valid limit?
4
0
3.6k
Jun ’15
BLE scan may freeze randomly
I'm currently working on an app that handle communication with a BLE device. One of my constraint is that i must connect to this device only when i have to send a command or read data. I must disconnect as soon as possible when it's done, to allow other potential users to do the same.One of the features of the app is the following :Users can enable an automatic command while the app is in the background. This automatic command triggers if the device hasn't been detected within 10 minutes.My app scans until it finds my BLE device.In order to keep it awake when i need it, i'm restarting the scan each time, because of the CBCentralManagerScanOptionAllowDuplicatesKey option ignorance.When it's detected, i'm checking if the last detection was more than 10 minutes ago. If that's the case, i connect to the device and then write into the characteristic corresponding to the service i need.The goal is to trigger this device when user come in range. It may happen a few minutes after being out of range such as a few hour
5
0
3.5k
Jun ’15