In my Cordova Application, I try to open a link with inappbrowser. This link points on a domain who need google authentication before access to the page. If I try to open again the link, the domain doesn't need to authenticate again, the session is ok, this works pretty well.
My issue happened when I kill the application. If I want to go on the link again, Google ask me to authenticate again. And I doesn't want to do that.
Is there a way to save the cookies of the inappbrowser plugin ?
Thanks by advance !
I had the same problem (on android) and realized the library I am using (ngCordova / cordovaOauth) was removing cache and session data (using
window.open(..., ..., 'clearsessioncache=yes,clearcache=yes')
.So it works now : the login(s) I use are remembered, and I don't have to re-enter my password again. So the cookies are definitely kept, at least on android.
In case you're interested, here is the relevant code in ngCordova :
I modified it a little to suit my needs. You will find the original here, around line 200 (look for
google:
).