apache / apache/cordova-plugin-inappbrowser
Issue with Cookie
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
# Bug Report
In my app, i am using inapp browser to authenticate the user and then close the browser. used to then store cookie and call rest api to retrieve data. This used to work perfectly fine with UIWbview. With WkWebview the cookies are not persisting between In app browser and cordova wkWebview.
## Problem
How do i retrieve cookie from InApp browser and store it in Cordova wkWebview instance?
### What is expected to happen?
Cookie should persist between InAppBrowser and cordova WkWebview session.
### What does actually happen?
Cookie is not available in Cordova WkWebview post authentication using In app browser window
## Information
### Command or Code
### Environment, Platform, Device
In App browser plugin version 4.0.0,
Cordova ios version 5.1.1 using Wkwebview only
IOS 13.4
### Version information
## Checklist
- [x] I searched for existing GitHub issues
- [ ] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
Contributor guide
Research direction
Start by tracing the InAppBrowser and Cordova WKWebView session entry points described in the report, using the stated plugin and iOS versions as the reproduction target. Verify whether authentication cookies are shared between the two browser contexts and document the expected behavior or a supported path for making the cookie available after authentication.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios
- Domain
- authentication, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100