My application provides the user with optional access to SMS and Phone calls. I have used:
<uses-permission android:name="android.permission.READ_PHONE_STATE" android:required="false"></uses-permission>
<uses-permission android:name="android.permission.SEND_SMS" android:required="false"></uses-permission>
<uses-permission android:name="android.permission.CALL_PHONE" android:required="false"></uses-permission>
Google Play does not expose this application to devices that do not have cellular network access. It seems like the required = false parameter is failing to do its job.
Is this a bug? Is there something else that I can do?
Why are you putting the required parameter inside a permission? The android:required param is used when you declare a feature, afaik... For example:
I think what you wanted to do is add
uses-feature
declarations withandroid:required="false"
.Use this table to update your manifest: http://developer.android.com/guide/topics/manifest/uses-feature-element.html#permissions-features
You don´t need to use the property
android:required
in<uses-permission
it only works for<uses-feature
, see the definition ofthis is the list of permissions that imply hardware features:
https://developer.android.com/guide/topics/manifest/uses-feature-element.html#permissions-features
Based on your elements:
you probably need to add only :
You can see all the permissions in the permissions tab in the
AndroidManifest.xml
file.