Invalid appid Being Sent For Android Events

We have an app that has been live for many months on both iOS and Android. We recently updated it on both platforms. In the Unity Analytics dashboard we noticed a significant drop in Android DAU that isn’t present in the Google Play Console.

After investigating with Charles we see that analytics events are being fired, but the appid field is listed in the requests as “local.cbdaa10237e4fd143[…]” instead of a standard UUID format like “d100a7bd-7297-4e63-9914-1330f35fe077”.

Here is the common JSONObject, with shortened ids:

{"common":{"appid":"local.cbdaa1[...]","userid":"0268a75c[...]","sessionid":8615[...],"platform":"AndroidPlayer","platformid":11,"sdk_ver":"u2018.3.8f1","session_count":2,"localprojectid":"cbdaa10237e[...]","build_guid":"daf7c75[...]","deviceid":"b36912b09[...]"}}

Any ideas what could be causing this on Android? Our iOS build sends a standard UUID for the appid field.

The “local.” app ID means the app does not have any Services enabled at the time of the build. The most common cause of this issue is not having the correct Project permissions when creating a build.

You should be able to enable the Analytics service and create a new build, and that should contain the correct appID. Note: When opening the Services window, you’ll want to select “Link to an existing project” so you can get your original appID (which you will select from a list of projects).

1 Like