kuhnza / angular-mixpanel

Mixpanel module for Angular JS
MIT License
54 stars 29 forks source link

angular-mixpanel doesnot work in Android App built with Ionic Cordova #29

Open Sajan129 opened 8 years ago

Sajan129 commented 8 years ago

mixpanel doesnot work in Android app built with ionic cordova. The CDN address provided in mixpanel-jslib-snippet.min.js is "//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js". In android, this file is searched in local device. I made it to work by adding HTTP protocol "http://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js". in jslib-snippet.min.js. The problem is I have to do this in each device.

Is there a way to do this in proper way??

lay-z commented 7 years ago

I added the protocol in manually but then proceeded to get a ERR_CONNECTION_REFUSED

Even though i've added a while card policy for origin and have updated my content-security-policy to include all possible hosts :( i am dying here