Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by vexe · Jun 21, 2016 at 08:09 PM · androidmanifestpermissionscontacts

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.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
5
Best Answer

Answer by Addyarb · Jun 22, 2016 at 03:51 AM

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.

Comment
Add comment · Show 7 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image vexe · Jun 22, 2016 at 04:09 AM 0
Share

Thanks for the answer! Yes that permission was the first thing I looked for, there are 4 $$anonymous$$anifest files, couldn't find it in any of them. It seems like it's caused by something else...

avatar image Addyarb · Jun 22, 2016 at 04:16 AM 1
Share

Uh oh! Okay well I've done a little digging, and it appears that the

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

permission does the same thing. Is it possible you have overlooked that?

avatar image vexe Addyarb · Jun 22, 2016 at 04:21 AM 0
Share

Hmm, I do see a GET_ACCOUNTS! I'll try that next thing in the morning. Thanks!

avatar image Addyarb · Jun 22, 2016 at 04:31 AM 1
Share

Woo hoo! I'm happy to hear that. Please let me know how it works out :)

For those reading this in the future - this appears to be caused by something called "Permission Groups."

This means that because the 'READ_CONTACTS' permission is a member of the 'GET_ACCOUNTS' group, 'GET_ACCOUNTS' will request the contacts permission. It's a sort of short-hand way of asking for all permissions associated with accounts I suppose.

For much more information - as well as a helpful table of all of the permissions groups, click here! You have to scroll down quite a bit to get to the table.

avatar image vexe Addyarb · Jun 22, 2016 at 10:56 PM 0
Share

I can confirm removing READ_CONTACTS worked! Thanks again!

avatar image Time-Jockey · Sep 03, 2016 at 04:31 AM 0
Share

Thanks so much for this. I was so confused where those extra permissions were co$$anonymous$$g from. After I decompressed the archive, edited the manifest, then compressed it again, that fixed the problem. It's ridiculous it's there in the first place, given the documentation says you need to manually add those permissions if you want to use certain features.

avatar image Gordinho · Mar 18, 2017 at 08:47 PM 0
Share

Hi Addyarb, I don't know how to send a message to your profile, so I decided to ask here for your help. I notice that you have the TVNT template and Im having some problems getting to work with it. I asked the developer but They still haven't answer me back. If you have the time and patience, do you think you could help me?. Thank you.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

74 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Avoid android permission prompt when returning to app after changing settings on device? 0 Answers

does unity 5.3 android sms billing status require configuration changes ? 0 Answers

Disable permission requests 0 Answers

What triggers the Internet Access permission, when it's set to auto on Android? 1 Answer

Disable permission dialog in Unity 5 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges