Comments (8)
To get the country code automatically, you can use something like: AppCenter.SetCountryCode(RegionInfo.CurrentRegion.TwoLetterISORegionName);
from appcenter-docs.
@michael-hawker I'll ask the team to take a look - Don't forget, it's a public repo, we're happy to take pull requests. :-)
from appcenter-docs.
How can we help you? Do you have any issues or questions?
from appcenter-docs.
@tareq143 The comments feature of the docs is designed to enable customers to suggest changes to the docs or ask clarifying questions about the docs. If you need help with the product, please login to the App Center dashboard and click the blue chat button in the lower-right corner of the page. Our dedicated support resources will answer any questions you have there.
from appcenter-docs.
@dparvin can we get that code added to the docs? I had found some other code elsewhere that was incorrect for some scenarios.
Ah, right, I was reading somewhere that CurrentRegion may always return US? https://stackoverflow.com/questions/44312188/how-to-get-users-region-on-windows-10-uwp
from appcenter-docs.
Tested on my VM, CurrentRegion returns US still when I change the Country/region in Settings. new Windows.Globalization.GeographicRegion().CodeTwoLetter
returns the proper result that I set in Region Settings.
from appcenter-docs.
@jwargo good point, will do :) Buddy of mine pointed me to this commit in your samples which uses what I suggested as well:
microsoft/appcenter-sdk-dotnet@46efe1f
from appcenter-docs.
Hi there, the concern is legit but same comment then in the PR.
Windows.Globalization.GeographicRegion().CodeTwoLetter
doesn't exactly fit the SDK use case. The SDK reports this country code as carrier country code which means it's not supposed to be provided by the user. There was a discussion around this in the App Center DotNet GH repository. We would need a sample using the location service I guess. I'll create a work item on our side to update the documentation with a location service sample but not sure when this will be picked up.
from appcenter-docs.
Related Issues (20)
- MAUI Support
- [iOS] Choose between Debug or Release Signing capabilities in branch configuration HOT 1
- Wrong support email listed on page. HOT 2
- Email address [email protected] undeliverable HOT 2
- Help page references an invalid email address for support ([email protected]) HOT 1
- Appcenter is not working, but the AppCenter Status Page says All Systems Operational. HOT 2
- Support email is invalid HOT 1
- Crash Upload API not working? HOT 1
- Could not join the invitation group through the admin already invited me HOT 1
- "97d69564-1130-e541-9362-c9272983784d"
- Update the "Setting Up API Access Clients" Section
- It is not possible to delete events with long names
- Update warning about issues with AppCenter in VSTO apps HOT 4
- Doesn't support Expo HOT 1
- Old support HOT 1
- AppCenter crashes on startup HOT 2
- InstallMode -> CodePush.InstallMode, remove 'codePush.sync({ updateDialog: true });' code
- Programmatic change to secret ignored HOT 1
- `delayInHours` documentation should note the minimum HOT 1
- t
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 appcenter-docs.