How Did GroupMe verify my number?

后端 未结 2 1640
囚心锁ツ
囚心锁ツ 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!

提交回复
热议问题