Related to https://twittercommunity.com/t/get-the-country-code-prefix/56358
I think the Authcallback : public void success(DigitsSession digitsSession, String phonenumber)
Should return an object instead of a string containing phonenumber AND country selected prefix (or code). Otherwise the people implementing this are "blind" when it comes to getting to know what country the user selected.
Thanks for the feedback @ramicd. Will share this with the team!
Absolutely right. Right now people have to create their own dictionary containing all country code numbers and then try to find the country code by using different String functions. It's not the best way of doing things. Returning an Object would be a great addition to Digits
yes. i am also facing the same problem. I want to get the country code but it returns a string. Haven't you made any progress regarding this country code problem yet? @bonnell
@bonnell how can i parse the mobile number to get the country code in iOS?
There haven't been any changes to the handling of this currently. You would need to do string parsing within your app based on the country code that you detect present at the beginning of the string.
oh okay. thanks for your quick reply @bonnell
@bonnell Apps would benefit from having it directly from the Digits API, instead of parsing... It's a painless change for the Digits API to just add one parameter in the returned object.
Thank you in advance for taking this into account.
Thanks for the additional feedback @youmenu - much appreciated!
@bonnell We are still not getting the country code back. Any possibility, we can get it in the near future?
Right now it's not on the team's immediate roadmap, but I've shared your interest with seeing this be added in with the team.
I dont want to be unfriendly or similar... but 1 yr passed by and this is still an issue, only a few lines of code would solve this... I guess its a big deal
Thanks for also expressing interest in seeing this added in. It's always helpful to hear how you would use this functionality - would love to hear your thoughts on it.