AuthorizationStatus for CLLocationManager is deprecated on iOS 14

It is now a property of CLLocationManager, authorizationStatus. So, create a CLLocationManager instance: let manager = CLLocationManager() Then you can access the property from there: switch manager.authorizationStatus { case .restricted, .denied: … default: … } There are a few location related changes in iOS 14. See WWDC 2020 What’s new in location. Needless to say, … Read more

How to add the AppTrackingTransparency permission to your iOS apps

For those who might be struggling with the same things, I got the AppTrackingTransparency dialog box to appear with the function, import AppTrackingTransparency import AdSupport //NEWLY ADDED PERMISSIONS FOR iOS 14 func requestPermission() { if #available(iOS 14, *) { ATTrackingManager.requestTrackingAuthorization { status in switch status { case .authorized: // Tracking authorization dialog was shown // … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)