Open jjsosa opened 4 years ago
We have probably the same problem. We are using fusionAuth as our identity provider. ionic-appauth is the package we use to call fusionAuth and internally it uses cordova-plugin-inappbrowser. For more details see the linked issue from robotdan
Bug Report
Problem
Cookies are always persisting even when I use the options to not cache (iOS & Android).
What is expected to happen?
It should not save cookies and local storage on IOS
What does actually happen?
It's saving cookies after closing browser. I'm using a logging flow and I want to see login screen every time that I open de inAppBrowser, but always passing away the login screen because of cookies.
Command or Code
Android options:
browserOptions = 'location=no,hardwareback=no,mediaPlaybackRequiresUserAction=yes,shouldPauseOnSuspend=yes,footer=yes,closebuttoncaption=Back,footercolor=#000000,clearcache=yes,clearsessioncache=yes';
iOS options:
browserOptions = 'location=yes,mediaPlaybackRequiresUserAction=yes,shouldPauseOnSuspend=yes,usewkwebview=yes,clearcache=yes,clearsessioncache=yes,cleardata=yes';
Environment, Platform, Device
Ionic v4 running on iOS & Android devices
Version information
Ionic:
ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 4.4.2 @angular-devkit/build-angular : 0.13.9 @angular-devkit/schematics : 7.3.9 @angular/cli : 7.3.9 @ionic/angular-toolkit : 1.5.1
Cordova:
cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1) Cordova Platforms : android 8.0.0, browser 6.0.0, ios 5.0.1 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.0.1, (and 9 other plugins)
System:
Android SDK Tools : 26.1.1 (/Users/jjsosa/Library/Android/sdk) ios-deploy : 1.9.4 ios-sim : 8.0.1 NodeJS : v11.10.0 (/usr/local/Cellar/node/11.10.0/bin/node) npm : 6.10.0 OS : macOS Mojave Xcode : Xcode 10.3 Build version 10G8
Checklist