Is there an API for Frequent Location History on iOS? - ios

I noticed "Frequent Locations" while rummaging through my settings on my iOS device. I'm trying to build an app that basically combs through your location history, either by social network or by your device, and determines if you were at a particular event. Does apple provide an API to access your recent frequent locations on your device? I read through this documentation but didn't see anything about location history.

From reading the Apple API reference guide it looks like 'locationmanager(_:didVisit:)' would provide the information you're looking for. It would provide data on locations that the user was in for a extended period of time.
What Apple's definition of extended is, I'm not sure. But this should get anyone searching for the frequent locations data a bit closer than what was posted in response to this question.
In the 'Getting the Visited Locations' subsection of this link.
https://developer.apple.com/reference/corelocation/cllocationmanager

Related

Automatic export location tracks of walking\running activiies in garmin

I would like to do some automated export location history - map (or picture of the map) of my walking and running activities from my Garmin watch.
I am not an enterprise developer, so I am not able to use Garmin API.
I am using HealthSync app to sync activities Garmin->GoogleFit.
I am able to see location trak inthe google fit.
I was trying to retrieve it via GoogleFit API, but looks like google does not allow we to do it :-( DataSource for the location in google fit Rest API
I was trying to perform sync Garmin->Fitbit (Fitbit has wonderful API)
But looks like HealthSync is not transferring location tracks from Garmin to Fitbit.
And I am near to giving up :(.
What could be an option for me to automate exporting\saving location tracks of my runs and walking?
I do like my Garmin watch and don't see good alternatives for them. But also I would like to own my data :-)
Google made some policy revisions especially with GDPR regulations tightening their nooses.
As stated in officially published docs, https://developers.google.com/fit/datatypes/location#location_sample, location data is exclusive to the application that originally wrote it. Thus, it becomes obscured to any other 3P app that also is writing and reading location data of its own.
You can also reach out to their mailing list, fit-developer-support#google.com, should you need any clarifications with their APIs, especially now that they're introducing Health Connect to replace the Android APIs, https://developer.android.com/guide/health-and-fitness/health-connect

Extracting screen time usage of the user in an Ios app (maybe with the Screen Time API)

Dear StackOverFlow Friends,
We are having a hard time understanding a concept that relates to the app idea that we are planning to develop. Imagine that we have an app called A. that requires the user's screen time usage information for selected apps like Udemy, Duolingo, and such. Our concept does not require any kind of app tracking or anything else, the only information that we need to acquire is the screen time information of the user. Accordingly, we have found an API namely Screen Time API, however, within the documentations and open topics, we couldn’t exactly be sure that we would be allowed to have such information. In this sense, we will need your kind support directing us around the idea and API.
The app will provide a futuristic, ToDo, and agile-oriented device usage environment for users to track their daily objectives by directly using the screen time information (of the apps, not just the overall phone usage).
Are we able to extract Screen Time information of the user's various apps?
Are we able to use the Screen Time API, no questions asked?
Do we need to create a proposal for the AppStore team that elaborates our idea for the App publishment?
Regards.

How to use Microsoft's ios offline translation API?

If I find the offline translation of the ios system, I have not found any api about the azure ios offline translation on the official website.
It is not currently available for iOS. Seems like it was a feature that was available previously, but it is now limited. Their website doesn't include a section for iOS translation anymore.
I wish I could provide a valid source online but my information comes from several hours on customer service calls with Microsoft Representatives who either told me that (1) the feature doesn't exist, (2) the feature used to exist but they can't find the pages anymore, (3) that the feature never existed and that it will be coming soon to iOS.

Sirikit supported services and its extended usage

I have a roadside assistance service application. It has some of the functionalities similar to ride booking app(Eg. Uber). How far can i leverage iOS 10 Sirikit? May be, apple can reject it. But i need to know the technical feasibility.
My application's functionality - I am struck in the middle of road with a flat tire. I need a tow assistance for my car. I give my current location and i ask my app to tow to my preferred dealer location. I pay for the service and wait for the provider to respond. I receive continuous updates from my service provider regarding the driver.
1st Step tried: I am trying to open my app with the statement "Siri, get a roadside assistance for my flat tire". I need to open my app and capture FLAT TIRE as a parameter. But I couldn't.
I tried using AppIntentVocabulary.plist. It was not working. I am missing something and there are no complete tutorials over the internet. Any help is much appreciated.
Sample Project:
Github Link for my simple Siri Integration:
https://github.com/vivinjeganathan/SiriExample
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
SiriKit is a way for you to make your content available through Siri. It also lets you add support for your services to the Maps app. To support SiriKit, you use the Intents framework and Intents UI framework to implement one or more extensions that you then include inside your iOS app. When the user requests specific types of services through Siri or Maps, the system uses your extensions to provide those services.
Add SiriKit support only if your app implements one of the following types of services:
Audio or video calling
Messaging
Payments
Searching photos
Workouts
Ride booking
Check this Link: http://airflypan.com/foundation-course/233
http://airflypan.com/foundation-course/233
You really can't do this in any sensible way for the user. Although you app's usecase will map to ride-hailing intent the vocabulary will not. Siri gives you almost no options to influence the vocabulary she is using to communicate to your User. If you could only teach you users that requesting a tow is actually requesting a ride... :)
Apple have analyzed the domains they are supporting and the vocabulary that is used in these domains and "taught" them to Siri in every language/culture that Siri is supporting. This makes total sense from Apple's point of view because you'd be hard pressed to be able to do this yourself.

How to switch off iPhone Internet and data package network connection?

I want to make an application that tracks the total consumption of Internet data or in other words a data tracker. If the set limit is reached I want the Internet data package connection to be disabled.
Is it possible with the iPhone SDK? If yes, then which API and the library should I be looking at?
Manipulating the core system preferences (disabling data packages) and measuring packages sent and received are both outside the "quarantine-zone" of the Apple Developer Guidelines.
If you DO happen to find some tricky way to do this (that is, the private iOS frameworks) you must know that your app will never be approved.
The closest thing that comes to this was the talk about a statistics API, where apps could see the number of calls made, data transferred, etc.
But this was not very well looked upon by the approval board, and will probably not be a reality any time soon.
You can't do this without going the jailbreak route. What you could possibly do is maybe show a notification to the user if they are near to reaching the limit.
To get the amount of data consumed, some service providers provide APIs (I'm thinking of the consume app) where you can get the data consumed and data left from the provider side.

Resources