chenheng0910 commented on issue #744:
URL:
https://github.com/apache/cordova-plugin-inappbrowser/issues/744#issuecomment-652732328
@breautek
I change in-app-browser plugin from 4.0.0 to 3.2.0 and add the code as
follow in `CDVUIInAppVrowser.m` file in line 74, and IOS face login worked
`NSHTTPCookie *cookie;`
`NSHTTPCookieStorage *storage = [NSHTTPCookieStorage
sharedHTTPCookieStorage];`
`for (cookie in [storage cookies])`
` {`
`NSDate *expiresDate = [NSDate
dateWithTimeIntervalSinceNow:3600*24*30*12];`
`NSArray *newCookies = [NSArray arrayWithObjects:cookie.name,
cookie.value, expiresDate, cookie.domain, cookie.path, nil];`
` if(newCookies){`
` NSMutableDictionary *cookieProperties = [NSMutableDictionary
dictionary];`
`[cookieProperties setObject:[newCookies objectAtIndex:0]
forKey:NSHTTPCookieName];`
`[cookieProperties setObject:[newCookies objectAtIndex:1]
forKey:NSHTTPCookieValue];`
` [cookieProperties setObject:[newCookies objectAtIndex:2]
forKey:NSHTTPCookieExpires];`
`[cookieProperties setObject:[newCookies objectAtIndex:3]
forKey:NSHTTPCookieDomain];`
` [cookieProperties setObject:[newCookies objectAtIndex:4]
forKey:NSHTTPCookiePath];`
` NSHTTPCookie *newCookie = [NSHTTPCookie
cookieWithProperties:cookieProperties];`
`[[NSHTTPCookieStorage sharedHTTPCookieStorage]
setCookie:newCookie];`
` }`
` }`
We think this problem is related to cookies. I'd like to know what you think?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]