As I understood, it is possible but such applications are not allowed in the official stores.
The app should get permissions in advance, from the user, and then, at random times, send an SMS to a random user from the phone contact-list, without further user interaction.
My questions are:
1) Is it possible at all?
2) If so, is it something that the official stores will approve?
Apple will definitely NOT approve this kind of app!
I have tried this for over 2 years now, even contacted Apple – there is no approval for this!
There has been an App in iTunes at sometime (how that could have passed the review process – nobody knows) This has been removed as soon as Apple got to know about this.
Besides the approval issue, there is no OFFICIAL way to even accomplish this.
While there are/were some direct calls to private libraries, using these would immediately be identified (even automatically nowadays).
Just stick with Apple’s rules if your App allows – give the user some background information, why they need to explicitly press “send” again – otherwise you might get some bad reviews, since this fact is certainly not known among all iPhone users.
In Android this is just a normal usage of
SmsManager.getDefault();