OpenUrl freezes app for over 10 seconds

I noticed the same problem when calling -[UIApplication openUrl:] from the Application Delegate didReceiveRemoteNotification: or didFinishLaunchingWithOptions: since iOS 7. I solved it by delaying the call a bit using GCD : // objc dispatch_async(dispatch_get_main_queue(), ^{ [[UIApplication sharedApplication] openURL:url]; }); It let iOS some time to finish application initialization and the call is then performed without … Read more

How to use openURL for making a phone call in Swift?

I am pretty sure you want: UIApplication.sharedApplication().openURL(NSURL(string: “tel://9809088798”)!) (note that in your question text, you put tel//:, not tel://). NSURL’s string init expects a well-formed URL. It will not turn a bunch of numbers into a telephone number. You sometimes see phone-number detection in UIWebView, but that’s being done at a higher level than NSURL. … Read more

OpenURL in iOS10

Swift 3+: func open(scheme: String) { if let url = URL(string: scheme) { if #available(iOS 10, *) { UIApplication.shared.open(url, options: [:], completionHandler: { (success) in print(“Open \(scheme): \(success)”) }) } else { let success = UIApplication.shared.openURL(url) print(“Open \(scheme): \(success)”) } } } Usage: open(scheme: “tweetbot://timeline”) Source

Link to app manage subscriptions in app store

Using a URL According to Apples article Handling Subscriptions Billing and WWDC 2018 Session 705 the following url can be used to link to the manage subscription page: https://apps.apple.com/account/subscriptions Using StoreKit/SwiftUI (iOS 15+) UIKit: Use StoreKits showManageSubscriptions(in:) (Documentation). SwiftUI: Use SwiftUIs modifier manageSubscriptionsSheet(isPresented:) (Documentation).

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