swift get another user location [closed] - swift

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Hi I was shown an adroid app where parents can see their kids location. I am wondered whether it is possible to do the same in ios. I know you can show your own location but how about showing another person's location. Is it possible? Their kids should not have to do anything the app itself receives child's location

Well that would be if you have a database that everyone can access where you store the positions. Take a look at Firebase for the database part.
So basically:
Get the position from the user
Store the position in the database
Get the position from the database
Parse the result and add an annotation to your mapview
Edit
If your iOS app must keep monitoring location even while it’s in the
background, use the standard location service and specify the location
value of the UIBackgroundModes key to continue running in the
background and receiving location updates. (In this situation, you
should also make sure the location manager’s
pausesLocationUpdatesAutomatically property is set to YES to help
conserve power.) Examples of apps that might need this type of
location updating are fitness or turn-by-turn navigation apps
For more information read this guide by Apple.

Related

Is it possible to send a Users Location from an iOS App to a Webserver? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I´m new to coding and programming and I have basically no knowledge, but my task is to create an iOS App.
I am working in an app project and the goal is to create an Emergency-App. The idea is that if you open the app, there is one button that you have to press for 2 seconds to send an Emergency call to a Web-Server, including the CoreLocation of the user and if possible also the floor where the user´s currently at. (As mentioned, I have no idea whether it is possible, thats why I am asking)
I also read that some people sent the location with an sms to a phone number.
So if any of you guys could help me on how to send the location to a web server that would be very helpfull! Or if you have an advice for me thats helpfull as well !
Thanks in common!
I haven´t really tried anything yet because i don´t know how.
From beginning, First set location Autorization status:
For that you need to specify permission in info.plist.
After the user will allow location services you will be able to get the real location coordinate on real device, if you want to simulate the location you can do it on simulator.
CoreLocation is the framework which Apple provide to access the location service. You sometime need to turn on the location capabilities.
You will have LocationManager class which does all you need. It also has delegate method that will give you all update of location, you can save current location in UserDefault everytime update comes.
When user press button you can send those coordinates from UserDefault

How to gather anonymous data from user using Firebase [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to gather anonymous information about my users music library. The information I want to gather is what is the count of rock songs, count of country, rap, jazz, etc etc. Again anonymously.
Lets say a user downloads the app and I have a method that checks if this the first time running. If so, then gather the info and send it to my Firebase console. If not then do nothing. But what if that user deletes the app and then re-downloads it. I don't want duplicate data. (I realize that a persons music library changes over time and I don't really have a good solution for that.)
How can I take the data from user A and assign that data that user and not re gather it whilst still keeping that user anonymous?
I see two variants here:
First to make a unique key for the user. Since you are gathering the anonymous data it could be something that cling to the user phone. Something like this.
Second is that you will save the bool flag that the app has collected the info not into user defaults, but to the keychain. Keychain doesn't clear after the app is removed, so you can check it if the app would be reinstalled.

Opening IPhone app when reaches a particular location? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Is there any way to open an iphone app without user interaction , like reminder setting etc
I want to open my iphone app when the user reaches a particular lat and long, if it is possible please give me an idea
Thanks in advance
You'll turn on location services and request location updates while in the background.
Location Services
But you will not be able to launch the app. You will be able to post a notification.
Notifications Guide
Yes, there is only one way:
The significant location service from Apple Location Api.
This will really open your app, even when it is terminated.
(Drawback: not accurate, up to 1000m because based on cell tower / wifi))
The other solution: Your app runs in background, consumes GPS positions regulary:
+/- : acurate up to some meters, needs more batterfy, app can be terminated by user

Last call duration in objective c? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm doing enterprise application. I need to detect last call duration from my application. I gone through core telephony framework but it will work only upto iOS 4.0. Can you please give me proper guidance to solve my problem.
Thanking you
Unfortunately you can't access the call history. The only User Data you have API access to is the address book. You can also access photos/pictures but only by starting an iPhone-controlled dialog that allows the user to choose a single image.
Note :-A CTCarrier object gives you information about the user’s cellular service provider, such as whether it allows use of VoIP (Voice over Internet Protocol) on its network. A CTCall object gives you information about a current call, including a unique identifier and state information—dialing, incoming, connected, or disconnected.
Read Link :-

Tracking anothe iphone on Mapview [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I want to developed iphone application in which i want to track another iphone on google map with in 10km region what kind of API can i use please tell me
Thanks
You'll need the device you're tracking to tell you its position. That means that it'll have to be running some app (possibly the same app) to get its position using Core Location. Then, it'll have to provide that information. As Richard Ross points out in his comment, you could do that using GameKit. Another approach would be to have the device send its location to a server that you create, perhaps using a web service. Your device would then query the server to find out the location(s) of device(s) it cares about.