signalpoint / jDrupal

A JavaScript Library and API for Drupal Applications
http://jdrupal.tylerfrankenstein.com/
GNU General Public License v2.0
76 stars 38 forks source link

Cookies with android problem #64

Open adam-clarey opened 7 years ago

adam-clarey commented 7 years ago

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 commented 7 years ago

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

signalpoint commented 7 years ago

@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).