ios9

iOS Push Notification Banner shown twice for a single Push

落花浮王杯 提交于 2019-11-28 04:39:29
I've noticed that sending a Push notification results in the following behavior: See how the banner is shown a second time, after a short delay? At first I thought that our backend was mistakenly sending 2 push notifications, one after the other. However, this appears to be default iOS behavior for a single Push notification. The banner is shown, then immediately "shown again". This results in this jittery UI shown in the gif. The banner appears to be received twice. Tested using iOS 9.0.2. I do not recall seeing this behavior from other apps that send me Push Notifications. Am I doing

OSStatus error code -34018

穿精又带淫゛_ 提交于 2019-11-28 04:38:44
I am using SecItemCopyMatching to access the iOS keychain. About 1 in a hundred times I get a -34018 result code right after relaunching the app from the background. The documentation states: The assigned error space for Keychain Services is discontinuous: –25240 through –25279 and –25290 through –25329. Keychain Item Services may also return noErr (0) or paramErr (–50), or CSSM result codes So it seems that -34018 is a 'CSSM result code'. I have followed the suggested link but could not find result codes. What it the -34018 result code? How can I get more reliable keychain access? - (NSData *

iOS 9 ATS SSL error with supporting server

橙三吉。 提交于 2019-11-28 04:24:32
I installed Xcode 7 and tried running my app under iOS 9. I'm getting the infamous error: Connection failed! Error - -1200 An SSL error has occurred and a secure connection to the server cannot be made. The thing is my server DOES support TLSv1.2 and I'm using NSURLSession . What could be the problem then? YogevSitton Apple has released the full requirements list for the App Transport Security . Turned out that we were working with TLS v1.2 but were missing some of the other requirements. Here's the full check list: TLS requires at least version 1.2. Connection ciphers are limited to those

iOS 9 searchBar disappears from table header view when UISearchController is active

匆匆过客 提交于 2019-11-28 04:04:30
The structure: View1 (click a button) -> present modally (MyModalView: UITableViewController) MyModalView has UISearchController embedded. The searchBar of UISearchController is placed in MyModalView.tableView.tableHeaderView. It's been working fine since iOS 8.0. However on iOS 9, the searchBar disappear when the UISearchController is active. Please take a look at theses pictures below The modal view: UISearchController active on iOS 8: UISearchController active on iOS 9: The very standard code: override func viewDidLoad() { super.viewDidLoad() // Dynamically create a search controller using

iOS 9 - “attempt to delete and reload the same index path”

江枫思渺然 提交于 2019-11-28 03:48:28
This is an error: CoreData: error: Serious application error. An exception was caught from the delegate of NSFetchedResultsController during a call to -controllerDidChangeContent:. attempt to delete and reload the same index path ( {length = 2, path = 0 - 0}) with userInfo (null) This is my typical NSFetchedResultsControllerDelegate : func controllerWillChangeContent(controller: NSFetchedResultsController) { tableView.beginUpdates() } func controller(controller: NSFetchedResultsController, didChangeSection sectionInfo: NSFetchedResultsSectionInfo, atIndex sectionIndex: Int, forChangeType type:

canOpenUrl - This app is not allowed to query for scheme instragram

青春壹個敷衍的年華 提交于 2019-11-28 03:45:19
Im trying to add the Instagram url to my app in iOS9 however I am getting the following warning: -canOpenURL: failed for URL: "instragram://media?id=MEDIA_ID" - error: "This app is not allowed to query for scheme instragram" However, Ive added the following to the LSApplicationQueriesSchemes in my info.plist ; <key>LSApplicationQueriesSchemes</key> <array> <string>instagram</string> <string>instagram://media?id=MEDIA_ID</string>//this one seems to be the issue </array> Any help is greatly appreciated? EDIT 1 This is the code I am using to open instagram: NSURL * instagramURL = [NSURL

iOS 9 ATS and Firebase REST

…衆ロ難τιáo~ 提交于 2019-11-28 03:42:20
问题 I am building a simple iOS app that talks to Firebase using REST API. Essentially, I am using NSURLSession.sharedSession().dataTaskWithRequest to connect to https://myusername.firebaseio.com/Object.json The app works fine in iOS 8. I am able to pass GET/PUT/PATCH/DELETE to manipulate my data. But since iOS 9 introduced ATS, I now have the https error: NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, CFNetwork SSLHandshake failed) I am fully aware of the workaround

Facebook share content only shares URL in iOS 9

半世苍凉 提交于 2019-11-28 03:28:08
Share FBSDKShareLinkContent with FBSDKShareDialog works fine in iOS 8 but fails to share imageURL , contentTitle , contentDescription on iOS 9 devices. The app is built with iOS 9 SDK, Xcode 7, Facebook SDK 4.7.0, all actions mentioned in Preparing Your Apps for iOS9 are done. The app is currently not available in App Store and Facebook app is in dev mode. The code to present the dialog is pretty common (Swift 2.0): let content = FBSDKShareLinkContent() content.contentURL = <URL to the app in the App Store> content.imageURL = <valid image URL> content.contentTitle = <some title> content

Xcode 7.2: In “Archive”: Getting the issue: “Cordova/CDVViewController.h’ file not found ”. While there is no such issues in building the app

。_饼干妹妹 提交于 2019-11-28 03:22:42
In iOS, I update 7.2. I'm able to build my existing project to my device with no problem. When it came time to archive the project to prepare for submission to the app store, however, I'm getting a build error - Cordova/CDVViewController.h file not found. I've gone through just about every fix/workaround that I've not found Stack Overflow, and Google, and none of them have worked for me. If I go back to Xcode 6.4 I can build and archive no problem, but I can't build to my device now that it's running iOS 9.1. I'm guessing it's a configuration issue somewhere with the new Xcode version setup.

UITextField text jumps iOS 9

南笙酒味 提交于 2019-11-28 02:51:45
问题 Link for previous question: UITextField text jumps Briefly: I have ViewController with 2 UITextField elements. When loginField is firstResponder, after self.passwordField.becomeFirstResponder() text in login field jumps to the top left corner and back. And what's more strange: this glitch reproduces only first time, then you need recreate ViewController to observe this behavior Here is video of the glitch http://tinypic.com/player.php?v=6nsemw%3E&s=8#.VgVb3cuqpHx I ended up with this (doesn't