angular-segmentio
angular-segmentio copied to clipboard
Can't Identify in Android emulator
I'm having troubles using segment io analytics on Android emulators. It works fine on the iOS simulator though.
That's the error I get on Android devices: http://cl.ly/X5LD/Screen%20Shot%202014-08-18%20at%2009.58.08.png
angular-segmentio seems to be relaying the work to analytics.js properly but analytics.js doesn't send the required json in the Body of POST requests. The response message is {"message":"You must supply either an anonymousId
or a userId
string.","code":"invalid_request_error"}
I will investigate more to see where it might be coming from. Also, is the version of analytics.js being downloaded v1 as this line suggests? https://github.com/arnaudbreton/angular-segmentio/blob/master/angular-segmentio.js#L51