Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8625599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:49:42+00:00 2026-06-12T07:49:42+00:00

I have a particular scenario in my application where some content (coming from service)

  • 0

I have a particular scenario in my application where some content (coming from service) needs to be displayed based on location or say country of the user.

There are two/three ways I figured out by which I could accomplish this but they have some disadvantages as mentioned below.

1) Using NSLocale

NSLocale *locale = [NSLocale currentLocale];
NSString *countryCode = [locale objectForKey: NSLocaleCountryCode];
Disadvantage:Can be changed by user, this is configurable from Setting->General ->International->Region Format

2)Using Core Location

Determine the latitude & longitude (CLLocationManager & CLLocation). From the latitude & longitude determine the country using Reverse Geocoding.
Seems to me the most accurate way of serving my purpose.

Disadvantage:If the user doesn’t allow core location services can’t find lat & long, again user dependent.

Here are my couple of questions

1)I would like to know if there is an API available from APPLE that helps me know the Apple ID through which my application was purchased and in-turn the country to which this Apple ID belongs?

2)This one may be highly impossible considering Apple’s secure environment, but still… Is it possible to get the country associated with the Credit card (if associated) against an Apple ID?

Waiting for response.

Thanks All.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T07:49:43+00:00Added an answer on June 12, 2026 at 7:49 am

    Answers to both questions is no (for good reasons). Apple does not provide programmatic access to the device owner’s Apple ID. And certainly not any info associated to the credit card. I would go with asking the user permission to get their location and explaining why your app needs it (in iOS 6 you can provide a context for why location is requested).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a particular application that needs to calculate something very specific, and while
I have a Web service based application, where the web server is running in
I have a particular scenario where I wrote my code using LINQ-SQL but I
I have a particular web application that like most others, has to account for
I have a particular situation: a service started by a broadcast receiver starts an
I have some particular need to clone an element (image) and be draggable inside
I have an application, which performs some custom data gathering, transformation and reporting. Currently,
I have a scenario where I need to bind two properties from one class
So here is the scenario, I have an Asp.Net application that is using a
I have a scenario wherein my ASP.NET MVC 3 web application hosted in IIS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.