ios9

Every Push Notification Banner is shown twice on iOS9 [duplicate]

天涯浪子 提交于 2019-12-18 15:50:30
问题 This question already has answers here : iOS Push Notification Banner shown twice for a single Push (8 answers) Closed 5 days ago . Since a few hours we have a strange issue in our iOS app: every push notification received on the home screen of iOS will trigger/show the same notification banner twice with a 2 sec delay between them. It only happens on devices with iOS 9.x. On iOS 8.x devices everything is still working as expected. If I set a break point in -[AppDelegate application

Every Push Notification Banner is shown twice on iOS9 [duplicate]

白昼怎懂夜的黑 提交于 2019-12-18 15:50:07
问题 This question already has answers here : iOS Push Notification Banner shown twice for a single Push (8 answers) Closed 5 days ago . Since a few hours we have a strange issue in our iOS app: every push notification received on the home screen of iOS will trigger/show the same notification banner twice with a 2 sec delay between them. It only happens on devices with iOS 9.x. On iOS 8.x devices everything is still working as expected. If I set a break point in -[AppDelegate application

Cannot change WKWebView's scroll rate on iOS 9 beta / 9.3

隐身守侯 提交于 2019-12-18 13:30:04
问题 On iOS 8, the below code works fine, it can scroll with more inertia. webView.scrollView.decelerationRate = UIScrollViewDecelerationRateNormal; As for iOS 9 beta 3, this code is meaningless, even without an error. Is this a bug or are there any other ways around? Note: UIWebView's scroll rate can be changed two types on both versions. 回答1: Update: this has been fixed but not deployed in iOS 9.3 (see workaround below). More detail here: https://bugs.webkit.org/show_bug.cgi?id=148086 http:/

Install app on iOS without Apple Developer Program (Xcode 7)

纵饮孤独 提交于 2019-12-18 13:19:54
问题 On June 8th, Apple announced that with Xcode 7, everyone would be able to install any apps they develop on their devices without an Apple Developer Program Certificate. The Apple Developer website says you only need to log in with your Apple ID. I already did that on Xcode, but every time I try to run an app on my iPad, this happens: I've been looking through the Apple Developer website on any instructions on how to do this, but I have not found anything. Does anyone know how to solve this

Push notifications are not working in iOS 9

旧时模样 提交于 2019-12-18 12:58:05
问题 I have upgraded my devices to iOS 9 and my Xcode environment to 7.0 beta. Push notifications are not working in iOS 9? Here is my code: float ver = [[[UIDevice currentDevice] systemVersion] floatValue]; if(ver >= 8 && ver<9) { if ([[UIApplication sharedApplication] respondsToSelector:@selector(registerUserNotificationSettings:)]) { [[UIApplication sharedApplication] registerForRemoteNotifications]; UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:

Xcode 7 will NOT build a valid Archive from the same project that builds a valid archive in Xcode 6

老子叫甜甜 提交于 2019-12-18 12:24:44
问题 When using Xcode 7b5 to build my app that contains a Today Extension I cannot create a valid archive. When I make an archive the build succeeds and then in Organizer it shows up under "Other Items" instead of under "iOS Apps". If I close the project and open up the same project in Xcode 6.3.2 when I make the archive it shows up under "iOS Apps". I compared the archives and the one thing I noticed is that my Today Widget is being placed outside of the Applications directory. The structure

Setting NSAllowsArbitraryLoads in iOS 9 - Will Apple reject the app? [duplicate]

百般思念 提交于 2019-12-18 11:47:57
问题 This question already has answers here : Does App Store reject submission if NSAllowsArbitraryLoads set to YES? (6 answers) Closed 4 years ago . I suddenly get a message on iOS 9 : The resource could not be loaded because the App Transport Security policy requires the use of a secure connection Searched a bit and found that setting NSAllowsArbitraryLoads to YES fixes this which actually works. However I also found that Apple may reject the App for this. Though stated in App Transport Security

FBSDKApplicationDelegate application openURL:sourceApplication:annotation deprecated

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 11:47:42
问题 with iOS9 application openURL:sourceApplication:annotation is deprecated func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject?) -> Bool { return FBSDKApplicationDelegate.sharedInstance().application(application, openURL: url, sourceApplication: sourceApplication, annotation: annotation) } so now we should use; func application(app: UIApplication, openURL url: NSURL, options: [String : AnyObject]) -> Bool {} FBSDKApplicationDelegate

Show UIAlertController over keyboard

雨燕双飞 提交于 2019-12-18 11:09:21
问题 In iOS 8 and lower show a UIActionSheet when keyboard is presented will present the action sheet over the keyboard. With iOS 9 this is no longer the case. In my app we have a chat functionality and want the show a action over the keyboard. We used to use UIActionSheet which worked fine until iOS 8. In iOS 9 the action sheet is present behind the keyboard. I've tried both UIActionSheet and UIAlertController . What we want is a action sheet like in messages.app I've tried placing the action

UIApplication.sharedApplication() is unavailable

[亡魂溺海] 提交于 2019-12-18 07:36:42
问题 I just upgraded from XCode 6.4 to Xcode 7 GM and get started to change the code to be compliant with Swift 2. I could not come over the following errors. The project is a keyboard extension and the snippet is from the containing app. let s = "https://itunes.apple.com/" UIApplication.sharedApplication().openURL(NSURL(string : s)!) Error 1: 'sharedApplication()' is unavailable: Use view controller based solutions where appropriate instead. Error 2: 'openURL' is unavailable. This might be