amplitude / Amplitude-Android

Native Android SDK for Amplitude
MIT License
164 stars 90 forks source link

fix: check response code when response code is 200 #349

Closed yuhao900914 closed 1 year ago

yuhao900914 commented 1 year ago

When making an event upload request, check the response code === 200 instead of checking the string response, in order to support the usage of a custom amplitude proxy.

https://github.com/amplitude/Amplitude-Android/issues/348 https://github.com/amplitude/Amplitude-JavaScript/pull/572