Search results for

ASWebAuthenticationSession cookie

1,297 results found

Post

Replies

Boosts

Views

Activity

QR code reader in iOS 13/iPadOS 13 opens links in a web view which does not have Safari's session cookies
QR code reader in iOS 13/iPadOS 13 opens links in a web view which does not have Safari's session cookies. QR code reader in iOS13/iPadOS13 opens web links in a web view instead of Safari. This is inconsistent with the camera in iOS13/iPadOS13 which opens web links in Safari. The difference here is that the webview used in the QR Coder reader does not have session cookies etc from Safari. I assume that the behaviour is just different here, but it's also possible that the cookies aren't available because of a bug? Did anyone else notice this? The behaviour of the QR code reader in iOS12/iOS13 is different, in iOS12 it nicely open links in real Safari, so the user's cookies can be accessed properly.
2
0
2.4k
Aug ’19
ASWebAuthenticationSession autofill login/password
Hi, I want use ASWebAuthenticationSession to autofill login/password on a website. I tried some code but it doesn't work it always prompt me for password. First I goto webSITE from button click action and then get the permissions prompt;https://pasteboard.co/IvzRXGZ.pngThen, after clicking continue button, the website prompts me for password;https://pasteboard.co/IvzSJjs.pngI fill in my username and password.Now, next time I go to page it SHOULD autofill with the login and password I entered. Its asking for login and password instead!Here is code excerpt;#import ViewController.h #import <AuthenticationServices/AuthenticationServices.h> @interface ViewController () @property (strong) ASWebAuthenticationSession *session; @end @implementation ViewController @synthesize session; - (void)viewDidLoad { [super viewDidLoad]; } - (IBAction)loginBtnClicked:(id)sender { NSURL *destinationUrl = [NSURL URLWithString:@https://site.name.edu]; NSString *callbackUrlScheme = @https://site.name.edu/Pages
Topic: UI Frameworks SubTopic: UIKit Tags:
2
0
1.2k
Sep ’19
ASWebAuthenticationSession and autofill Login/Password
Hello,I have an app that views a web page. This web page requires login. So, I decided to use ASWebAuthenticationSession to autofill web page with credentials. Needless to say it is not working. Here is my code;#import ViewController.h #import @interface ViewController () @property (strong) ASWebAuthenticationSession *session; @end @implementation ViewController @synthesize session; - (void)viewDidLoad { [super viewDidLoad]; } - (IBAction)loginBtnClicked:(id)sender { NSURL *destinationUrl = [NSURL URLWithString:@https://xxx.yyy.edu]; NSString *callbackUrlScheme = @https://xxx.yyy.edu/Pages/main.aspx; session = [[ASWebAuthenticationSession alloc] initWithURL:destinationUrl callbackURLScheme:callbackUrlScheme completionHandler:^(NSURL * _Nullable callbackURL, NSError * _Nullable error) { if (error != nil && error.code == 1){ [self.session cancel]; } else { printf(Error: %s, error.localizedDescription.UTF8String); } }]; BOOL started = [session start]; printf(Started? %s, starte
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
780
Sep ’19
Reply to ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs
I do also have seen this warning for one of my Apps, but not for the other, though both do use UIWebView. So this warning might not be simply based on the usage of UIWebView alone, but maybe also some other information, like for example deployment targets and other invisible dependencies and maybe it's also a difference if this is a new App or an update...Right now this really seems to be a warning only, so you probabyl still can get Apps accepted for the AppStore which use UIWebView.And Apple can't really remove UIWebView from the iOS so easily, probably hundreds of thousands of (older) Apps would no longer work. Though of course they could stop accepting new Apps and updates which use UIWebView. But this can be also difficult because Apps which are supposed to run under older iOS releases (deployment target) might still require UIWebView.In general I would appreciate if Apple would spend its time to make WKWebView a real replacement for UIWebView instead of forcing us to a WKWebView which still can't do som
Sep ’19
WKWebView sometimes loses the session cookies variable
I have a Ruby on Rails backend web application. I use iOS application as a web client (WKWebView) written in swift. The authentication token is stored as a session cookies variable on the backend:session['token'] = generate_tokenThe problem is that accidentally this session variable is lost and the flow is redirected to login page. The WKWebView is not closed, just used to process HTTP requests. I'm not able to figure out, why this accidentally happens. It seems like a WKWebView bug, because in Safari this problem has been never happened.
0
0
579
Sep ’19
NetworkExtension-based NKE replacement in Catalina
Hi,I am currently working on moving the Network Kernel Extensions-based socket filtering in our application to the newly available NetworkExtension-based filtering available in Catalina. There are a few points where I would like to have some more details, especially how some of our NKE-implemented requirements can be translated to the NetworkExtension, more precisely:Abitility to monitor traffic volume in (near) real-timeAbility to disconnect / block a stream that is currently transferring data, i.e. that was previously allowed to startBoth of those enable our app to act as a kill switch when users are tethering and about to go over their data limit during a big file download for example.This steered me towards using the new additions to Content Filter Providers with NEFilterDataProvider, but seeing some issues during testing I want to be sure if this is the correct choice or if I’m misusing the API and so would need to evaluate other options like transparent proxy.In order to get the data count as the flow p
12
0
3.3k
Sep ’19
ASWebAuthenticationSession dismiss completion?
We're using ASWebAuthenticationSession and whenever no errors occur, all is well. However, if there's an error generated by our OAUTH web endpoint, the authentication session's UI is automatically dismissed. And, right at the beginning of its dismissal, our callback is called. But if we attempt to show say an error alert, or even present the prior view controller, we get errors like: Attempt to present <UINavigationController: ...> on <MainViewController: ...> while a presentation is in progress!In looking at the documentation, I see no way to tap into the authentication session's UI dismissal. Is there any way to defer work until after the session's UI is dismissed?For now, we're using a hack where we 'perform with selector' after a one-second delay. But I don't want to rely on that whatsoever.Here's the gist of our code:// In our main view controller... private var webSession : ASWebAuthenticationSession? func presentAuthorization(withURL aURL: URL) { webSession = ASWebAuthenticationSession
0
0
2.1k
Oct ’19
CSS files cached always
Hi Guy's,insteadI hope Apple developers also reading this articles, because the functionality of Safari development for Mac OS and iOS is strongly recomended to be changed.First at all I have working on simple site with css styles and html with small additions of Java and see next bug's (or features) provided by apple team.When I'm using safari 13 Develop console and set up ignore cache feature in Network tab is working for all content (html, fonts etc.) instead css stylesheets files. Css content still got by safari from memory and this is ver stupid idea. Always when I need to see my changes I have clean all cached data from all sites using Cmd + Option + R key combination. This method is unusable.More from this - I have connect iPhone with last iOS and mobile Safari version and do the same. Previous version has clean mobile safari cache when I do this action. Buit new version of Development console cleans only Mac Cache data not mobile cache. So, to check the site new look I need clean all mobile saved data
3
0
2.6k
Oct ’19
Error when tapping on anything inside loaded page in WKWebview
I have an issue with WKWebview. The pages load without any problems, but whenever I tap on any button on website, slide photos or accept cookies policy I get the following error:2019-10-14 11:27:02.933458+0200 AppTitle[2592:447958] [general] Connection to daemon was invalidatedDoes anyone know what may be the issue or what am I missing? This error causes further problems inside the app. Here is my code:import UIKitimport WebKitimport TinyConstraintsclass DetailsVC: UIViewController, WKNavigationDelegate, WKUIDelegate {let myUrl = URL(string: https://google.pl/)var webView: WKWebView = { let webview = WKWebView() return webview}()func addWebView() { view.addSubview(webView) webView.edgesToSuperview(insets: .top(40) + .right(0) + .left(0), usingSafeArea: true) webView.navigationDelegate = self webView.uiDelegate = self webView.load(URLRequest(url: self.myUrl!))}override func viewDidLoad() { super.viewDidLoad() // Add webview addWebView() }}
2
0
5.7k
Oct ’19
Black Screen only in IOS 13 when i run my application in testflight
I am stuck with my application, its work in a developer device and emulator too with IOS 13, but when i generate and upload the release version in the testflight, the application in the same device start the launchscreen and quickly show a black screen. I use and older iphone with IOS 12.4.2 and the same build works fine. I need help. This is the link of my testflight https://testflight.apple.com/join/maFeskwLThis is my app AppDelegate code:import UIKit import CoreData import CoreLocation import GoogleMaps import OneSignal import GoogleMobileAds import PianoOAuth import SDWebImage import Firebase @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate, CLLocationManagerDelegate, ESTBeaconManagerDelegate { //, ESTBeaconManagerDelegate { var window: UIWindow? var beaconManager = ESTBeaconManager.init() var locationManager: CLLocationManager = CLLocationManager() var listUUIDs : [String] = [] var monitoreando = false // MARK: UISceneSession Lifecycle @available(iOS 13.0, *) func application(_ ap
8
0
11k
Oct ’19
Reply to How can I prove I own an app I made myself?
We see that verbiage often enough here - it isn't about proving you own the app. It is about proving you have ownership rights to the content/company~product names/trademarks etc. used in the app.Review has the impression you are making the app for someone else, and using your account to put their app in the store, which is prohibited under the dev agreement.If the content, app name, etc. are yours, you need to provide documentation showing ownership of that content. If you are using various content from other legal owners inside -your- app, you need to provide documentation that shows you have permission from the owners. If the owners simply asked you to make an app, again, that isn't allowed and they need to have their own dev account. That account would be used to upload the app to the store. In those examples, you/the dev can work as a 'consultant' for the account owner and help them to get their app in the store under their account.Using an app builder/template is another question, perhaps triggered by o
Oct ’19