jDrupal icon indicating copy to clipboard operation
jDrupal copied to clipboard

Cookies with android problem

Open adam-clarey opened this issue 8 years ago • 2 comments

I want to use cookie based authentication which works with a web app and ios, but not Android.

Has anyone come across this issue before?

adam-clarey avatar Mar 08 '17 14:03 adam-clarey

I realised that unlike the browser and iOS emulator, the android emulator does not resolve local domains on your dev machine so it was trying to access http://mysite.local but couldn't access it without trying to hack the emulators hosts file

adam-clarey avatar Mar 08 '17 19:03 adam-clarey

@adam-clarey Is this for D7 or D8. Not that it matters here, but IIRC you can use e.g. http://10.1.10.2 for an Android emulator. I haven't used an emulator in years though to be honest, I strictly develop in the browser, then compile to a real device when it's time to test on hardware.

Other than that, I've had no issue with compiled Android apps having cookie problems (I've only tested this in D7 though, I'm getting close to my first compiled D8 app for Android).

signalpoint avatar Mar 08 '17 22:03 signalpoint