cordova-plugin-cookies
This plugin returns the cookies from the webview for a specific url so the cookies can be used e.g. to get the cookies from cordova-plugin-inappbrowser and pass it to cordova-plugin-advanced-http.
Installation
cordova plugin add cordova-plugin-cookies
Supported Platforms
- Android
- iOS
Limitations
It doen't work with the UIWebView on iOS (It's deprecated by Apple).
Usage
Plain
// get cookie string from webviewwindowcordovapluginsCookiesPlugin;
Extended
- Ionic v5 with Angular
- @ionic-native/in-app-browser
- @ionic-native/http
// create in app browser; // check for cookies on every loadstopiab.on"loadstop".subscribe;