apache / apache/cordova-plugin-inappbrowser

iOS cookies not persistent after app exit and restart unlike Android

Open
#509 10 comments 1 reaction 0 assignees View on GitHub
wkwebview
Dominant language
Java
Stars
1.1k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

# Bug Report

## Problem
In iOS cookies are not persistent once app is exited and restarted. This creates problem with hosted web app saving cookies or local storage.

On Android it works

### What is expected to happen?
It should save cookies and local storage on IOS

### What does actually happen?
It doesn't save cookies and local storage.

## Information

### Command or Code

var ref = cordova.InAppBrowser.open('http://www.syncaridebeta.com', '_blank', 'location=no,toolbar=no,usewkwebview=yes,clearcache=no,clearsessioncache=no,cleardata=no,disallowoverscroll=yes');

### Environment, Platform, Device

### Version information

## Checklist

- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue on iOS with the shown cordova.InAppBrowser.open call, then compare cookie and local-storage behavior before and after app restart with Android. Done means the hosted web app retains both cookies and local storage after an iOS exit and relaunch; the payload does not identify source files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, javascript, objective-c
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.