What's responsible for the `Allow XXX to access your contacts?` when first installing/running a game on Android?

Greetings!

When we install our game to the device, it prompts us with two questions, first one asks to access files, media, photos, etc which is fine, but then the second one asks to access contacts “Allow XXX to access your contacts?” - Which is too scary and could be a turn-off for players.

Plugins we use: AdMob, GooglePlayGames, Chartboost, UnityPurchasing

  • I need to turn that setting off. I know it’s probably a Manifest settings somewhere but what is it exactly?
  • After I find the responsible setting/parameter, do I have to publish a new version of the game on Google for the changes to take effect?

@Bunny83

Any help is appreciated,
Thanks.

Hi vexe,

GooglePlayGames is likely asking for your [users’] contact permissions. You can always check this by locating your AndroidManifest.xml file within your project. Simply type “Manifest” into your search field in your project tab - and it should pop right up. If there are multiple ones - don’t worry. Look through [each of your] Android Manifests and check what plug-in is asking for contact permissions. It will look something like this:

 <uses-permission android:name="android.permission.READ_CONTACTS" /> 

You can safely remove this line if you wish - however keep in mind that it may cause unexpected results if GooglePlayGames (or other plugins) does, in fact, rely on that permission. Try it out!

On a subjective note - don’t stress about the permissions too much. The average user simply doesn’t care.


Note that for example the Prime31 plugin (as of Aug 16)

Plugins/Android/PlayGameServicesPlugin.aar

asks for GET_ACCOUNTS inside that zip file.

Note that it turns out with Google, you ONLY need GET_ACCOUNTS if you are trying to

  • get an access token, or
  • get the user’s email address

It seems to be safe to remove the GET_ACCOUNTS permission if you are not trying to do those things.