Search Unity

Invalid appid Being Sent For Android Events

Discussion in 'Unity Analytics' started by wwcolter, Aug 6, 2019.

  1. wwcolter

    wwcolter

    Joined:
    Nov 4, 2016
    Posts:
    23
    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:

    Code (CSharp):
    1. {"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.
     
    Last edited: Aug 6, 2019
  2. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,203
    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).
     
    wwcolter likes this.