Comments (12)
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.
Hi thanks for you quick answer :)
But this package won't work on iOS devlopper told me :/ is that right ?
from digits-cordova.
As far as I know, it works on iOS. The main problem might be getting it approved in the app store
from digits-cordova.
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.
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.
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.
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.
Please send example code by which i can get phonenumber
from digits-cordova.
@yangli1990 yangli1990 could you please help :)?
💯 thanks
from digits-cordova.
Can you wait 2 days? I'll build an example. I've got a lot on my plate right now.
from digits-cordova.
ok
from digits-cordova.
@yangli1990 I was struck with this please upload some sample application.
from digits-cordova.
Related Issues (12)
- Does not work on web? HOT 1
- require is undefined HOT 1
- Security issue HOT 3
- PhoneGAP - Themes? HOT 1
- Verification failure HOT 9
- Error : Something is technically wrong on Digits HOT 3
- I am using Cordova / Ionic for creating a hybrid app. Which consumer key should I use. HOT 2
- Digits Asking for signup
- require is not defined HOT 1
- Not returning back after success HOT 1
- Integration question HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from digits-cordova.