0

I'm working on an app that uses a feature that is only available if the device can receive a text message. How can I ensure that the app is only compatible with sim-card acceptable devices?

olu
  • 173
  • 2
  • 14

2 Answers2

1

You can use uses-feature flag in the AndroidManifest.xml

<uses-feature android:name="android.hardware.telephony" android:required="true" />

By using this it will filter simless devices for you. https://developer.android.com/guide/topics/manifest/uses-feature-element.html

Piyush
  • 1,973
  • 1
  • 19
  • 30
0

You should use a flag in the AndroidManifest.xml

Add the uses-feature line to your manifest in this way:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="your.package.app">

    <!-- Add this line to your manifest -->
    <uses-feature android:name="android.hardware.telephony" android:required="true" />

    <!-- other declarations -->
    [....]

</manifest>

In this way Google Play Store should not list your app for devices which doesn't have a SIM or radio communications.

More info here in the Telephony hardware features section

MatPag
  • 41,742
  • 14
  • 105
  • 114