- Home /
Can I remove READ_PHONE_STATE permission on android while using Unity IAP?
I'm using Unity IAP - obviously for the in-app purchasing feature. The problem is: using Unity IAP automatically adds request for READ_PHONE_STATE on android.
I don't want this because some of my users would think suspicious about this permission. Actually revoking this permission (in Android 6+) does not block the purchase itself.
Is there any way to remove the request of READ_PHONE_STATE permission while using Unity IAP?
Answer by nicholasr · Dec 03, 2016 at 01:30 AM
@LuciaEllan and @hexagonius This spurious permission has been fixed in Unity IAP 1.9.2. Please update using the Services Window. We apologize for the inconvenience - we are adding permission checking to our QA process to catch this in the future. See https://forum.unity3d.com/threads/unity-iap-store-package-1-9-2-is-now-available.415517 for more.
@nicholasr I updated IAP and Unity to 5.5.2f1, however READ_PHONE_STATE permission is still there. Is there a way to directly delete it?
Answer by hexagonius · Dec 02, 2016 at 07:26 PM
I just had a quick look and found this. The last entry is from 8 days ago:
https://forum.unity3d.com/threads/read_phone_state-permission-on-android.441636/
the solution seems to be exchanging the used IAP version.
Answer by nztree · May 09, 2017 at 05:48 AM
If you are using the Unity Facebook SDK:
Versions 7.9 and above of the Facebook SDK prompt Unity to auto-include the READ_PHONE_STATE permission. Installing 7.8 or below does not prompt its auto inclusion. Hope this helps.
Your answer
Follow this Question
Related Questions
How to access receipt product with codeless IAP 0 Answers
Android IAP: Restore non-consumable purchase after clearing app data 0 Answers
How to test promo iap on android device? 0 Answers
Authentication error when testing Unity IAP on an Android device 1 Answer
IAPs don't work after updating Unity 0 Answers