sfsafariviewcontroller

iOS10 SFSafariViewController not working when alpha is set to 0

这一生的挚爱 提交于 2019-11-28 00:36:48
问题 I'm using SFSafariViewController to grab user's cookie in my app. Here's is my code: SFSafariViewController *safari = [[SFSafariViewController alloc]initWithURL:[NSURL URLWithString:referrerUrl] entersReaderIfAvailable:NO]; safari.delegate = self; safari.modalPresentationStyle = UIModalPresentationOverCurrentContext; safari.view.alpha = 0.0; safari.view.hidden = true; [self dismissViewControllerAnimated:false completion:nil]; NSLog(@"[referrerService - StoreViewController] presenting safari

How to clear SFSafariViewController credentials?

此生再无相见时 提交于 2019-11-27 15:17:57
问题 I'm using SFSafariViewController in Swift 2 to display web pages on an iPad Air 2 with ios 9.1 (13B143). Each of the web pages requires credentials from the user. However, when the user presses a logout button, I need to clear those credentials. I've tried using the following: let allCreds = NSURLCredentialStorage.sharedCredentialStorage().allCredentials for (protectionSpace, userCredsDict) in allCreds { for (_, cred) in userCredsDict { print("DELETING CREDENTIAL") NSURLCredentialStorage

Google + login iOS App rejection from appstore using google sdk v3.x

故事扮演 提交于 2019-11-27 13:17:17
问题 After digging a lot I am here posting my problem. I am using google sign in latest sdk in my app and the app supports iOS 8+. I am using Xcode 7.2 currently. Recently my app got rejected with the very common reason which many users have experienced in the past: FROM APPSTORE We noticed that the user is taken to Safari to sign in or register for an account, which provides a poor user experience. Specifically, Google log in takes users to Safari to sign in. Next Steps 10.6 Please revise your