Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question How to Send Sms Verification Code From Unity

Discussion in 'Scripting' started by Alexander21, Jul 8, 2023.

  1. Alexander21

    Alexander21

    Joined:
    Dec 14, 2015
    Posts:
    301
    Hi All

    In my project i have to send sms (Verification Code) and then user should enter the code.It must verified.

    Previously i am using Firebase to send and verify sms. But past one month i am receiving error from firebase

    So i am decide to change to other method.

    Is there any way i can send sms code from any other source other than firebase.

    Did Php can send sms or did unity support amazon pin point or any other method.

    can any one can provide good solutions for to send SMS code?????????
     
  2. KillDashNine

    KillDashNine

    Joined:
    Apr 19, 2020
    Posts:
    451
    Unity is not a mobile network operator. You are talking about a user authentication system that would typically offer many authentication methods. How about going to Asset Store and searching "authentication". You'll find options.
     
    Bunny83 likes this.
  3. Bunny83

    Bunny83

    Joined:
    Oct 18, 2010
    Posts:
    3,525
    Authentication is always against a second party like your own server or some kind of backend. So that server / backend would send the sms to the user / client which then has to enter the code which the client would send to that same server / backend to verify that he is in control of a certain mobile number. Sending SMS requires a system to actually have access to a provider that can send SMS and usually sending SMS costs money, especially when you potentially send many of them. So "sending" the SMS does not really happen in Unity but has to be done on your server and I don't think there's a general solution as it most likely depends on your carrier / mobile / SMS provider.
     
    lordofduct likes this.
  4. Alexander21

    Alexander21

    Joined:
    Dec 14, 2015
    Posts:
    301
    Thanks JAAKAOOS and Bunny For your reply.

    Did Amazon Pin Point Supports in Unity. With that help shall i can send sms vefication code using unity.