Giter Club home page Giter Club logo

Comments (12)

yangli-io avatar yangli-io commented on August 17, 2024

No, unfortunately phone number is user sensitive data and twitter will not give it back to us. You can however get the phone number through another Cordova package,
cordova plugin add com.simonmacdonald.telephonenumber

from digits-cordova.

pierrehalleux avatar pierrehalleux commented on August 17, 2024

Hi thanks for you quick answer :)
But this package won't work on iOS devlopper told me :/ is that right ?

from digits-cordova.

yangli-io avatar yangli-io commented on August 17, 2024

As far as I know, it works on iOS. The main problem might be getting it approved in the app store

from digits-cordova.

pierrehalleux avatar pierrehalleux commented on August 17, 2024

Indeed :/ do you see a possible work around to be sure to have it approved on store ?

Thanks a lot

Pierre

Sent from my iPhone

On 27 oct. 2015, at 23:23, Yang Li [email protected] wrote:

As far as I know, it works on iOS. The main problem might be getting it approved in the app store


Reply to this email directly or view it on GitHub.

from digits-cordova.

yangli-io avatar yangli-io commented on August 17, 2024

Depends on why you would need the users phone number, you could simply add a input field and ask them for it. If you have a legitimate reason for needing the users phone number then im sure apple would approve.

from digits-cordova.

Ajay1412 avatar Ajay1412 commented on August 17, 2024

Please check this link
https://docs.fabric.io/web/digits/getting-started.html#set-up-digits-authentication

There is mentioned:
From your web server, over SSL, you can use this response to securely request the userID, phone number, and oAuth tokens of the Digits user. With this approach there is no need to configure OAuth signing, or configure and host a callback url for Digits.

So here is mentioned we can access phonenumber.but i am not getting how we can.
In success call back function i am getting i.e

{
"oauth_echo_headers":{
"X-Verify-Credentials-Authorization":"OAuth oauth_consumer_key="F1vVaDqvmTQbtoxYhzR6baV55",
oauth_nonce="3733735153-f00HtJyPmqKlqQTewerDRudlqvjbtXUfOrji9cDF1vVaDqvmTQbtoxYhzR6baV551445321536239", oauth_signature="ksouZ54Nb2LC6EOfTWYqKaC3iLs=",
oauth_signature_method="HMAC-SHA1",
oauth_timestamp="1445321536",
oauth_token="3733735153-f00HtJyPmqKlqQTewerDRudlqvjbtXUfOrji9cD", oauth_version="1.0"",
"X-Auth-Service-Provider":"https://api.digits.com/1.1/sdk/account.json"
}
}

Can you give example how we can access phonenumber ?

from digits-cordova.

yangli-io avatar yangli-io commented on August 17, 2024

You will need to send that json to your backend and have your backend communicate with twitter digits. Digits will send you back a phone number to your backend.

from digits-cordova.

Ajay1412 avatar Ajay1412 commented on August 17, 2024

Please send example code by which i can get phonenumber

from digits-cordova.

pierrehalleux avatar pierrehalleux commented on August 17, 2024

@yangli1990 yangli1990 could you please help :)?
💯 thanks

from digits-cordova.

yangli-io avatar yangli-io commented on August 17, 2024

Can you wait 2 days? I'll build an example. I've got a lot on my plate right now.

from digits-cordova.

Ajay1412 avatar Ajay1412 commented on August 17, 2024

ok

from digits-cordova.

anandhakumarr avatar anandhakumarr commented on August 17, 2024

@yangli1990 I was struck with this please upload some sample application.

from digits-cordova.

Related Issues (12)

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.