googleanalytics / google-analytics-plugin-for-unity

Google Analytics plugin for the Unity game creation system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android READ_PHONE_STATE permission

YY1377 opened this issue · comments

First, thank you for this great plugin!
The problem is after exporting the project for Android in Unity, I see an extra permission in manifest.xml.
Without plugin, it doesn't appear. Is it an expected result? Many users do not want to download the application when they see read_phone_state permission.

Hi yusufoncul

Definitely agree on not wanting to add extra permissions, thanks for spotting it. I was able to reproduce the issue but I'm not sure why the permission is being added. I'll investigate and update.

Thanks!

Fix submitted, please reopen if it doesn't solve the issue for you.

Can you reopen this issue:
This issue is still valid, there is still a call to SystemInfo.deviceUniqueIdentifier which results this permission. Which is shown scary on Android 6.0 like "Allow to make and manage phone calls"

https://github.com/googleanalytics/google-analytics-plugin-for-unity/blob/master/source/Plugins/GoogleAnalyticsV3/GoogleAnalyticsMPV3.cs#L62