Detecting an SMS which is sent from a sms provider in Unity3d

HI,

I have a doubt and I would like to know if the following things can be implemented in Unity or not? My game requires that in user registration, mobile number is to be sended over the server, and the server sends an verification code sms back to the game. Is it possible for the unity to auto detect the sms received in the phone.? Also is it possible to send sms from the Unity game to a number without opening native sms app? Is it possible to send and receive data to and from the server? Can some one please give me some links to start with? I have searched everywhere and haven’t find any links for the above. Please don’t reject this question. It’s my humble request. I’m planning to release this game in android as well as in ios. Is it possible for the both platforms to suport the above mentioned requirements? Also I would like to know if there is any way to open camera from my unity game and take a picture using front or back camera and display the image in my game. Also I need to pick an image from gallery, and load this image to my game too. Is there any file picker facility available in Unity3d? Can someone please help me in this issues too.

thanks in advance.

For iOS, you can not intercept an SMS message and read it’s contents regardless of how you develop (well, maybe you can if the device is jailbroken but I’ve never tried). You also can’t send an SMS message from the device without using the official Messages app (there is no API for it). You are able to bring up the share dialog, which will give the player the option of sending a message, but they have control over the content and pressing the send button - you can’t automate it.

For what it’s worth, I wouldn’t ever register for a game where I have to send them my phone number, so you might want to re-think that. Do you really need to get their number?

If you are looking to just tie each game to a unique ID, you can have a server distribute unique IDs which are then stored in the device keychain (to avoid removal when deleting the app). You could ask people to login via Facebook for the same effect - you could even ask for permissions to read their phone number but make sure you actually need it.

As the above paragraph suggests, sending data to and from servers is easy enough (loads of examples out there), just look at the WWW unity documentation.

Opening the camera is possible, although I think you may need to write your own plugin (I’m sure there will be something on the asset store if you don’t want to write your own). Same goes for the image gallery.