You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/07/02 01:51:41 UTC

[GitHub] [cordova-plugin-inappbrowser] chenheng0910 commented on issue #744: IOS: Third part login use fingerprint login / face login, IOS failed and display a white screen.

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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org