Cordova app hanging during startup on iOS 10

OK, I found the problem and the solution thanks to this post: It seems that iOS 10 requires additional entries in the Content-Security-Policy meta tag, namely gap: and file:. After adding these, my Content-Security-Policy looks like this: <meta http-equiv=”Content-Security-Policy” content=”default-src * gap: file:; style-src ‘self’ ‘unsafe-inline’; img-src ‘self’ data:; script-src * ‘unsafe-inline’ ‘unsafe-eval'”> And the … Read more

How to use Facebook iOS SDK on iOS 10

Error OSStatus -10814 occures when canOpenURL: can’t find any application, that can open this URL (actually, Facebook trying to find their application by calling canOpenURL: with argument “fbauth2:/”). Printing happens inside of function, so you can’t do anything with that. But if you will run your application on device with installed Facebook app, you will … Read more

iOS 10 – Changes in asking permissions of Camera, microphone and Photo Library causing application to crash

[UPDATED privacy keys list to iOS 13 – see below] There is a list of all Cocoa Keys that you can specify in your Info.plist file: https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html (Xcode: Target -> Info -> Custom iOS Target Properties) iOS already required permissions to access microphone, camera, and media library earlier (iOS 6, iOS 7), but since iOS … Read more

Push notification issue with iOS 10

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 UserNotifications.framework in your AppDelegate. #import <UserNotifications/UserNotifications.h> @interface AppDelegate : UIResponder <UIApplicationDelegate,UNUserNotificationCenterDelegate> @end … Read more

Class PLBuildVersion is implemented in both frameworks

Main Idea Main idea is simple: If your app (or dependencies, such as Pods) uses framework, that uses explicit (or implicit) PhotoLibraryServices.framework or AssetsLibraryServices.framework as dependency, Xcode warns you (even if you are using only one of them). It might be Photos/PhotosUI.framework or AssetsLibrary.framework, or another (I don’t have full list of dependencies, but it … Read more

Registering for Push Notifications in Xcode 8/Swift 3.0?

Import the UserNotifications framework and add the UNUserNotificationCenterDelegate in AppDelegate.swift Request user permission func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { let center = UNUserNotificationCenter.current() center.requestAuthorization(options:[.badge, .alert, .sound]) { (granted, error) in // Enable or disable features based on authorization. } application.registerForRemoteNotifications() return true } Getting device token func application(_ application: UIApplication, … Read more