- Home /
Unity Android READ_PHONE_STATE permission
Hello.
I've created a mobile game for iOS and Android and it uses chartboost plugin to show advertisement and AdMob as well.
The thing is that I've created some permissions in the AndroidManifest in order to make this plugins work and one of this permissions is READ_PHONE_STATE which is asking for permission to read the call information to those who install the game. I don't like this because could generate distrust among users.
I've tried to delete the line that ask for this permission but when I do it the game crash at the beginning, so, is there any way to remove this permission? Or I have to keep it if I want to show advertisement?
Sorry if there are some grammar mistakes, I'm not english native and thank you for your help.
I use admob, and do not need this permission. I looked into the chartboost plugin, and I do not see where this permission is required. Are you sure you deleted it from the manifest properly?
Chartboost manifest:
<!-- ACTIVITIES -->
<activity android:name="com.chartboost.sdk.CBImpressionActivity"
android:excludeFromRecents="true"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<activity android:name="com.chartboost.sdk.unity.CBUnityPlayerProxyActivity"
android:label="@string/app_name"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|ui$$anonymous$$ode|touchscreen">
<intent-filter>
<action android:name="android.intent.action.$$anonymous$$AIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.chartboost.sdk.unity.CBUnityPlayerActivity"
android:label="@string/app_name"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|ui$$anonymous$$ode|touchscreen">
</activity>
<activity android:name="com.chartboost.sdk.unity.CBUnityPlayerNativeActivity"
android:label="@string/app_name"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|ui$$anonymous$$ode|touchscreen">
<meta-data android:name="android.app.lib_name" android:value="unity" />
<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />
</activity>
<!-- PER$$anonymous$$ISSIONS -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWOR$$anonymous$$_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.android.vending.BILLING" />
I think that this is related to admob but I don't know what you mean when you say if I'm sure that I deleted it properly. I deleted the line that say:
uses-permission android:name="android.permission.READ_PHONE_STATE"
and thats all.
Am I forgetting anything?
Just thinking you might have left the < or /> in the manifest. What are you using for admob?
I have rechecked and it's properly deleted. I am not sure about what I am using for admob because it was my partner the one who integrated it and I can't talk to him right now, sorry, I would updated with that info as soon as I talk to him.
Thank you for your interest.
Edit: The plugin that we used is this one: http://forum.unity3d.com/threads/173292-Admob-Unity-Package-that-work-with-Unity-3-2-amp-above
Your answer
Follow this Question
Related Questions
How to place Adv Vertically 1 Answer
Reloading the scene causes ads to reload. Is this ok ? 3 Answers
Missing AdActivity with android:configChanges in AndroidManifest.xml 0 Answers
After updating android sdk getting error “Package name is not a valid java package name” 0 Answers
Admob banner is not showing 1 Answer