Code Monkey home page Code Monkey logo

Comments (1)

simonbooth avatar simonbooth commented on July 28, 2024

This needs some thought - firstly it needs to be an optional optimization as we support both devices with an SMS capable SIM but also data only devices (WiFi or Data only SIM).
In order to be secure, the system (app or backend) needs to first verify ownership of the number - unfortunately this is hard to do in a consistent way on the device. https://stackoverflow.com/questions/2480288/programmatically-obtain-the-phone-number-of-the-android-phone
If the app is to be submitted to Google app store, additional restrictions apply, https://support.google.com/googleplay/android-developer/answer/9047303#exceptions - the only official way to allow this verification is by placing a voice call to the device and reading the call log OR to be the default call app. This could be a design goal. It also further restricts the use case to SIM cards that support voice calls. The other problem is that this voice call cannot convey any kind of sync code to match this device with this account.
The implementation design could look something like (assumes SMS send permission):

  • App registers to backend with device ID and obtains pairing code (same as now)
  • App sends SMS to the backend with the pairing code, backend should get the phone number this way

from candlestick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.