ios10

How to use Facebook iOS SDK on iOS 10

↘锁芯ラ 提交于 2019-11-26 01:49:20
问题 I am trying to use Xcode 8 to build a app with Facebook login using Swift 3. When I switch back iOS Simulator 9.3, it works. In iOS 10, I receive this error: \"\"fbauth2:/\" The operation couldn’t be completed. (OSStatus error -10814.)\" and Optional(Error Domain=com.facebook.sdk.login Code=308 \"(null)\") Anyone have solution for this? Note 1 : After debugging, this problem is FBSDK cant update expect_challange . Function SecItemUpdate inside security.framework not work. This is a problem of

disable viewport zooming iOS 10+ safari?

南楼画角 提交于 2019-11-26 01:46:29
问题 I\'ve update my iPhone 6 plus to iOS 10 beta version and just found that in mobile safari, you can zoom any webpages by double tapping or pinching IGNORE the user-scalable=no code in the meta tag. I don\'t know whether it\'s a bug or feature. If it\'s considered as a feature, how do we disable viewport zooming iOS 10 safari ? updated on iOS 11/12 release, iOS 11 and iOS 12 safari still DO NOT respect the user-scalable=no meta tag. 回答1: It's possible to prevent webpage scaling in safari on iOS

Push notification issue with iOS 10

让人想犯罪 __ 提交于 2019-11-26 01:45:25
问题 I\'ve developed one application in that i\'ve implemented push notification. Currently it\'s live on apple store. Upto iOS 9 push is working fine but after iOS 10 it is not working. What is the issue with the code? 回答1: For iOS 10 using xCode 8 GM. I have resolved my issue with following steps using xCode 8 GM for iOS 10: 1) In the targets, under Capabilities enable Push Notifications to add Push Notifications Entitlements. 2) Implement UserNotifications.framework into your app. Import

Cordova app hanging during startup on iOS 10

南楼画角 提交于 2019-11-26 01:42:24
I just installed Xcode 8 beta in order to test my existing Cordova app in iOS 10 beta (via Simulator). When the app is launched, it just hangs on the loading page - seems the deviceready event is not being fired. So I also installed iOS 10 beta on my iPad Air (just in case it's a Simulator issue), but I get the same results. The app works fine on iOS 9.3 (both device and Simulator). Anyone encountered/fixed this problem? UPDATE Other symptoms of this problem include: the app will start correctly if you background the app (switch back to the home screen) then foreground the app (switch back to

Registering for Push Notifications in Xcode 8/Swift 3.0?

强颜欢笑 提交于 2019-11-26 01:42:13
问题 I\'m trying to get my app working in Xcode 8.0 , and am running into an error. I know this code worked fine in previous versions of swift, but I\'m assuming the code for this is changed in the new version. Here\'s the code I\'m trying to run: let settings = UIUserNotificationSettings(forTypes: [.Sound, .Alert, .Badge], categories: nil) UIApplication.sharedApplication().registerUserNotificationSettings(settings) UIApplication.shared().registerForRemoteNotifications() The error that I\'m

Cordova app hanging during startup on iOS 10

泪湿孤枕 提交于 2019-11-26 01:08:09
问题 I just installed Xcode 8 beta in order to test my existing Cordova app in iOS 10 beta (via Simulator). When the app is launched, it just hangs on the loading page - seems the deviceready event is not being fired. So I also installed iOS 10 beta on my iPad Air (just in case it\'s a Simulator issue), but I get the same results. The app works fine on iOS 9.3 (both device and Simulator). Anyone encountered/fixed this problem? UPDATE Other symptoms of this problem include: the app will start

How to use Facebook iOS SDK on iOS 10

旧城冷巷雨未停 提交于 2019-11-26 01:05:00
I am trying to use Xcode 8 to build a app with Facebook login using Swift 3. When I switch back iOS Simulator 9.3, it works. In iOS 10, I receive this error: ""fbauth2:/" The operation couldn’t be completed. (OSStatus error -10814.)" and Optional(Error Domain=com.facebook.sdk.login Code=308 "(null)") Anyone have solution for this? Note 1 : After debugging, this problem is FBSDK cant update expect_challange . Function SecItemUpdate inside security.framework not work. This is a problem of IOS 10 Roman Ermolov Error OSStatus -10814 occures when canOpenURL: can't find any application , that can

CGRectMake, CGPointMake, CGSizeMake, CGRectZero, CGPointZero is unavailable in Swift

随声附和 提交于 2019-11-26 00:32:17
问题 After converting code to latest swift 3.0 I am shown this error. Also tell me solution for CGSize = CGSizeMake(0,0) static var frameAtStartOfPan: CGRect = CGRectZero static var startPointOfPan: CGPoint = CGPointZero Which is also unavailable. 回答1: CGRect Can be simply created using an instance of a CGPoint or CGSize , thats given below. let rect = CGRect(origin: CGPoint(x: 0,y :0), size: CGSize(width: 100, height: 100)) // Or let rect = CGRect(origin: .zero, size: CGSize(width: 100, height:

Hide strange unwanted Xcode logs

﹥>﹥吖頭↗ 提交于 2019-11-25 23:59:16
问题 When using the Xcode 8+ and creating a new blank project, the following logs appear when running the application: 2016-06-13 16:33:34.406093 TestiOS10[8209:100611] bundleid: com.appc.TestiOS10, enable_level: 0, persist_level: 0, propagate_with_activity: 0 2016-06-13 16:33:34.406323 TestiOS10[8209:100607] Created DB, header sequence number = 248 2016-06-13 16:33:34.409564 TestiOS10[8209:100611] subsystem: com.apple.UIKit, category: HIDEvents, enable_level: 0, persist_level: 0, default_ttl: 0,

Transport security has blocked a cleartext HTTP

倾然丶 夕夏残阳落幕 提交于 2019-11-25 22:13:48
问题 What setting do I need to put in my info.plist to enable HTTP mode as per the following error message? Transport security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app\'s Info.plist file. Assume that my domain is example.com . 回答1: If you are using Xcode 8.0+ and Swift 2.2+ or even Objective C: <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSExceptionDomains</key> <dict>