I’m working on a Kid’s app, and I need to disable any external web calls.
I just want to use IAP on Unity 2021.3 LTS, and I get lost on many threads and changes on the analytics system with game-service.
Please can Anyone help me to understand how to totally disable external calls? I also see I need to disable “hw statistics” in player settings, but I don’t see it.
Somewhere I get this code, but not sure is still valid:
@Klamore74 HW Stats was only available prior to Unity 2019. The code you shared is for legacy Analytics which is now deprecated and not available for new projects. If this is an existing project with legacy Analytics, then the code above would work. IAP now recommends UGS Analytics but it not required, this has more info FAQ for IAP 4.2+ and adoption of UGS Services
I just enabled the IAP, and “legacy Analytics” showed up. I just do it yesterday, so I don’t understand what you mean that is not available. Maybe I was in an older IAP version, and I updated after?
Reading the infographics appear that Analytics can be untied from IAP.
It is not possible to enable legacy Analytics in new projects, you probably received an email to that effect. It probably looks like it’s enabled in the Editor though but don’t try to disable it. Ensure to read through that link I shared. IAP 4.4.1 is the latest version. Once you build your game, you can confirm what is being sent over the network by using Charles Proxy https://support.unity.com/hc/en-us/articles/115002917683-Using-Charles-Proxy-with-Unity
If you can call that code, it means you have the legacy library installed. Instead of looking under Packages in Project, look under the Unity Registry and look for the green check. Also, you could try this method if you have the UGS Analytics package installed, look for SetAnalyticsEnabled
I don’t see the call in my testing. Did you find and remove “Analytics Library”? It’s not in my test project. If you can provide an unencrypted Charles capture, we could probably tell where this is coming from. You would need to add the package mentioned in the article. You would also be able to tell exactly what is being sent, it is likely only the projectID and no user information. Can you compare to a brand new project? Create a Charles capture before and after you add any packages.
We’ve had users pass Apple certification for years with legacy Analytics, there is no private user data in the request. Did you find and remove “Analytics Library” and/or compare to a new project?
I cannot include any code to disable because no libraries are included. So by default Unity is sending session information.
And “from many times we do so” is not an answer, privacy is not the same as in the past years. An in any case, in the past we got a wrong review on Steam for that. Now I’m risking having throble passing the “design for children” process.
There is no personal information, but in the call, there is UserId, DeviceId, AppId, and SessionId. This is tracking, and I don’t want that.
I’m trying right now to put again the IAP hoping to link to UGS and not the older one. And I hope I can remove it.
Sorry for the confusion. I was suggesting to start with a new/empty project to compare. Why can’t you unlink? Did you find it in Package Manager and attempt to remove it? It should not be present in new project. If you are seeing that web call, Analytics Library is indeed in your project in Package Manager, I trust you looked under “Unity Registry” also. Another thing to try is to edit /ProjectSettings/UnityConnectSettings.asset and ensure all the settings are 0 for UnityAnalyticsSettings.
I just start from a new project, and I got the same results, BUT editing UnityAnalyticsSettings works!
I want to thank you for your support. I know that is incredibly hard to follow that huge combination of versions and configurations. And sorry to be so pressing, I was very worried about that.