Coder Social home page Coder Social logo

Comments (4)

guperrot avatar guperrot commented on May 14, 2024

Hi, the country code is meant for geographical position, not culture/locale.

On Analytics we already report the culture/locale automatically and you can see it on the portal in Analytics > Audience > Languages.

Countries chart on the left is meant for actual geographical position.
On Android and iOS, we report country only if you have a mobile carrier at the moment.

The API you mentioned cannot be used to determine geographical position, it simply returns this:

capture

I am in Redmond, USA, not Antarctica, users can put whatever they want there.

from appcenter-sdk-dotnet.

michael-hawker avatar michael-hawker commented on May 14, 2024

Any updates on this? I had a crash in my app as the docs didn't have a sample for this and the example I got elsewhere was invalid.

Is it possible to get the user's location for UWP without adding a capability to the app? It does seem like the Globalization API is going to be a rough approximation as I'd imagine most users who setup their PC in their own country would have this value set to their country? Are there stats on the changes people make to this setting and how often it differs from the real location?

from appcenter-sdk-dotnet.

michael-hawker avatar michael-hawker commented on May 14, 2024

Also, according to the location docs that value can only be retrieved when the app is in the foreground, so the timing with when to set and start the App Center API would need to be carefully considered/documented.

from appcenter-sdk-dotnet.

AnastasiaKubova avatar AnastasiaKubova commented on May 14, 2024

Hi there! We already have an AppCenter.SetCountryCode API for setting country code manually. Please see a code sample for how to do it.
I'm closing this issue but feel free to reopen it if you will have additional questions.

from appcenter-sdk-dotnet.

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.