How Did GroupMe verify my number?

后端 未结 2 1641
囚心锁ツ
囚心锁ツ 2021-01-02 16:56

I am working on an iPhone application where I need the user\'s phone number. From what I\'ve read (here for instance - Programmatically get own phone number in iOS), the dev

相关标签:
2条回答
  • 2021-01-02 17:22

    What GroupMe does is use the MessageUI Framework ( http://developer.apple.com/library/ios/#DOCUMENTATION/MessageUI/Reference/MessageUI_Framework_Reference/_index.html) to send a text message to their servers.

    Basically it works like this:

    1. The app is turned on and calls the server.
    2. The server responds with a code b2bd308eb7.
    3. The app sends that code via SMS to the server.
    4. The server gets the code and your phone number (from SMS) and confirms them.
    5. Your phone number and app are connected!
    0 讨论(0)
  • 2021-01-02 17:27

    They send a text message to some service that they can query with their server. So by sending the code to the server, they can verify the number,

    0 讨论(0)
提交回复
热议问题