is it possible to track user position from his phone number in ios? - iphone

I am working on map based iphone application. Where i need to find user position of week days from morning 9:00 AM to 5:00 PM either by using Device IDs or his mobile number. I know that Apple has instructed third-party developers to cease tracking iPhone, iPad, and iPod Touch users via the unique serial number associated with each one of its hardware devices. But is it possible to track position from any other way ?
Thanks

The only possible way is to use location based APIs. Device ID and MAC are deprecated and giving same results for iOS7.
It is not possible to track with mobile number as well. Service providers can help for that but not with help of phone.

I don't think you can track a phone by the mobile number unless you are the police or something, and have access to that data.

Related

Find iPhone devices/device tokens in specific radius :-

I want to find iPhone devices/device tokens within a specific radius from particular location.
For example : Within a 25 K.M. of radius from Sydney,i want to get iPhone devices tokens.
I am working on ASP.NET MVC2 for this.
Let me know,if is there any API for that?
Thanks,
You are only able to get details for devices that you 'know' about. Your app will need to log unique IDs for each device, and your app will need to log known locations for devices. It's then up to you to look up, from your central database, the details of the devices within a certain distance. iPhones can update significant location changes when running in the background but it's up to you to track devices and accept the limitations that that data may not always be correct. eg. If a user falls outside connectivity then you will still have an old location logged for that user.
I'm not aware of a single API that offers this services, if you're coding it then in your app you will need to register devices identifiers and location information to a central server. You will also need to create the lookup to query your data to find devices within a location. I am guessing that you might want to send push notifications, in which case your app will also need to register for notification services too.
There is no way for you to discover devices that don't have your app running and you also do not know who the owner is.

iPhone iOS6 is it possible to run accelerometer while the phone is locked (year 2012 )?

I've been browsing the app store and found 2 examples of commercially-successful apps that boast being able to run accelerometer-based algorithm with the phone locked (power button pressed). These apps are "Sleep Cycle Alarm" and "Smart Alarm Clock"
I see quite a lot of Q and A from 2010, 2011 which say that it is impossible to continue using accelerometer when the user locks the device. Yet I see that at least two apps have this feature available. This is why I'm asking - is there some new API or workaround that exists as of October 2012 that allows app developers to run accelerometer with the phone power button pushed (phone locked/asleep)? Or is it a secret API that is only available to top-selling apps?
Thank you for your input! I know there are dozens of questions like that, but I'm looking for the most recent information from 2012.
First of all, there are no secret api only for top selling apps. Nad i think a work around may be possible to fetch the data of the accelerometer when the phone is in sleep mode or locked.
this link might give you an approach towards your solution check it out
Enable iPhone accelerometer while screen is locked

Is it possible to send location data silently from the iphone (with users agreement ofcourse)?

I was wondering if it possible to create an application that will send my 9 year old's iPhone location let's say each 30 minutes, even when the iPhone is not active.
If not, then is it possible to send it each time he uses his phone?
Why not using an existing solution?
http://www.apple.com/icloud/features/find-my.html
See find my friends - it has also parental restrictions. This is excatly what you want.
You're probably looking for startMonitoringForReigion:desiredAccuracy:. This function will allow you to set the iPhone to notify your app anytime a defined boundary is crossed. When you receive this notification, I believe you can send that info to a server or wherever.
That said, if monitoring your child's location is what you want, you'll have great luck with the Find My Friends app from Apple.

iPhone iOS: how to detect when in roaming? (Not for jailbreaked phones)

I'm coding an app with heavy network usage. I've been told to warn users for costs but only when in roaming mode.
I know theres some way to know when the phone is roaming comparing two undocumented files on jailbreaked iphones. But I need to find out how to for non jailbreaked phones.
BTW found nothing at SCNetworkReachability api.
Ty!
There's no way to know if they're roaming using the API. You can find out if they're on Wifi or Cellular, but that's it.
You can get the user's home network country code from CoreTelephony.
There are lists to map MNCC ( mobile network country code) to a real country code.
Next get your location, from CoreLocation, and get an address from that using geolocation.
Compare one to the other, and there you have it.
Not 100% reliable near borders, but good enough for a warning message.

Can we publish two versions of an iphone application?

HI,
I am developing an application for an esteemed client in Australia. They have certain copyright issues when it comes to uses outside Australia accessing the content via the app.
Is it possible to have a local and an international version of the app, both available via iTunes Store? The international version will only have permissible content. If not, please advice the best option to deal with this issue.
Thanking you in anticipation
Cheers,
Amit
Yes, you can create two versions of the application with different SKUs. The best way to do this would by by using a wildcard certificate and using a different project identifier in the application's plist file.
Using the administrative panel on iTunes Connect you can then restrict the sale of the SKUs to different territories.
These options become available when you have paid the $99 for a development certificate, and and when you upload your application to iTunes.
As others have noted, it's possible to build two versions and to use the iTunes store to restrict distribution based on the nation where the buyer is located.
However there's another issue to consider. You say that the problem is "accessing the content via the app" outside of Australia. But you're on a platform which is inherently mobile, and may not be located in the same country it was when the user got your app. What happens if someone is in Australia, gets the app legitimately, and then travels to some other country? They're no longer in Australia but they have a copy of the app that assumes they are. Would your client's copyright restrictions still permit them to access content that's supposed to be Australia-only?
If not, your problem is rather different than using app-store restrictions. But it might also mean that you get to have a better solution to the problem that doesn't require multiple versions of the app.
Think about it: the iPhone knows where it is. A 3g phone can get GPS-accurate location info, and the older phones get reasonable approximations anytime they have a phone network connection. That gives you lat/long coordinates.
What then? Since your home area is pretty well defined, it might be simple-- draw a rectangle around Australia on a map, and define "in Australia" as being in that rectangle (being a whole continent comes in handy here). If you want something more precise, feed that lat/long into a reverse-geocoding API (there are many-- Flickr has one, for example) to find out what country you're in.
And voila, you can make the app behave one way in Australia and another way outside of it, and you only need one version of the app to do it.
You can restrict which apps are sold in which country/geographical region. Your Australian app you can restrict to Australia and sell another app worldwide.