inaturalist / iNaturalistAndroid

Android app for iNaturalist.org
https://market.android.com/details?id=org.inaturalist.android
MIT License
168 stars 57 forks source link

Include X-Installation-ID HTTP header with all requests #1351

Open kueda opened 4 months ago

kueda commented 4 months ago

In iNat Next we log a unique identifier for the installation with every HTTP request the app makes, allowing us to collect metrics about all users, not just signed in users or observers. In order to compare iNat Next with the apps it will ostensibly replace, we want the native apps to do the same thing so we can compare things like signed out retention time in the native iPhone app vs iNat Next.

Analogous code in iNat Next is at https://github.com/inaturalist/iNaturalistReactNative/commit/7ea60f7b9b96cfc0b3502f78258aff4117d8596f#diff-04caadce6ee341e3b733b5bb94dcf5907f82eaebba541bde03078cd551e42209R11-R17