0

I want to prevent a messaging app (ios & android) being used via a device that does not have a sim card. This previous question and this one both suggest the following might work for android, but I also need an ios equivalent :

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

Can such code to be copied to a tablet/desktop and then circumvented ? I am aware that wattsapp's mobile-only approach could be circumvented for use on a PC and I want to avoid such possibility.

Community
  • 1
  • 1
easytiger
  • 3
  • 1

1 Answers1

0

In Xcode click on the project and open General page. There in Deployment Info - Devices choose iPhone.

To restrict devices only to those that had telephony you should add to Info.plist UIRequiredDeviceCapabilities (aka Required Device Capabilities) dictionary entry with key telephony set to YES.

mixel
  • 25,177
  • 13
  • 126
  • 165