location

Local Notification on arrival iphone sdk

蓝咒 提交于 2019-12-11 16:02:24
问题 this is my first question here and I am really hoping someone can help me. I have a navigation app that displays an alertview to the user when they arrive at their destination. This works perfectly fine, but I want to alert the user through a localnotification in the same manner when they arrive and the app is in the background. I have registered the app to receive Location updates in the Info.plist file, and do all my distance calculations in didUpdateToLocation. Again, this works perfectly

UWP background task location tracking

不问归期 提交于 2019-12-11 15:16:29
问题 I'm trying to develop an UWP app that is able to continually track the user's location in an in-process background task. I've been looking at the Microsoft sample code on GitHub (geolocation / Secenario3_BackgroundTask) but the problem there is that it is based on a TimeTrigger. The shortest interval that TimeTrigger allows is 15 minutes, but I need to get location updates much more frequently. Let's say at least once per minute. Is that possible at all? I've seen that there is a

Is android application able to retrieve location info from connected WiFi hotspot AP?

一笑奈何 提交于 2019-12-11 15:01:49
问题 Wanted to know how Lat/Long info will be retrieved for specific location where my mobile device is connected to one of the public WiFi hotspot AP. So, my program gets the data and pass on to find location info to originate E911 calls or sending location info for any calls made? if this possible, let us know how this can be done? are there any specific Android APIs to do so? Please provide the details if possible. 回答1: You can't get location direction from WiFi hotspot (actually WiFi spot

navigator.getCurrentPosition() not working in Firefox nor Safari

我是研究僧i 提交于 2019-12-11 14:53:30
问题 I can't seem to get navigator.getLocation() working on either Firefox 65 or Safari 10 function getLocation(user_radius) { var geo_options = { enableHighAccuracy: true, maximumAge : 30000, timeout : 27000 }; function error(err) { console.warn('Cannot load user location. Make sure you gave permission to share location'); } document.body.style.position = "absolute"; if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function (position) { lat0 = position.coords.latitude; long0

How can I get the GPS location for use in a website?

孤街浪徒 提交于 2019-12-11 14:49:57
问题 I am developing a website that needs to know the user's location. All of the users will be employees of the company; there's no tracking of customers or anything like that. The users will be employees out in the field. They could be on Android phones, iPhones, tablets, or laptops. I've found several ways to get their location, but can't find specific ways to get that location back to our website. Ideally, we'd like the user's location to be reported to database and the website would get that

How to get current country without using “LocationManager” or “NSLocale”?

余生颓废 提交于 2019-12-11 14:48:54
问题 I want to get my current country ; but I don't want to use "LocationManager" or "NSLocale" I just need the name of the country. any idea please? Thanks a lot :) 回答1: You should try to get Cellular information #import <CoreTelephony/CTCarrier.h> #import <CoreTelephony/CTTelephonyNetworkInfo.h> // Setup the Network Info and create a CTCarrier object CTTelephonyNetworkInfo *networkInfo = [[[CTTelephonyNetworkInfo alloc] init] autorelease]; CTCarrier *carrier = [networkInfo

php is not matching ios lon and lat with a mysql lon and lat properly [duplicate]

与世无争的帅哥 提交于 2019-12-11 14:11:25
问题 This question already has an answer here : Closed 7 years ago . I am trying to get the output of the lat and lon coordinates from ios (this is working fine), send it to php to query with MySQL and have the php send an xml document back to ios(this step is not working because it is not bringing back the mysql entry within that location), then parsing it on iOS UItableview (this is working fine too). I am trying to get this to work with XML cause I've gotten a simpler xml script running already

Get location ( BroadcastReceiver,LocationListener) [closed]

社会主义新天地 提交于 2019-12-11 13:24:30
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I am beginner at android. I have a question. I want to when I receive SMS then get my location(latitude and longitude). How can I do. if you have sample code, it will be more helpful. Thanks for your help. 回答1:

java.lang.IllegalArgumentException: GoogleApiClient parameter is required

若如初见. 提交于 2019-12-11 12:37:52
问题 I am trying to Get my location using the Google Play Services.I have added compile 'com.google.android.gms:play-services:8.4.0' in my gradle.Here is the code I am Using : import android.Manifest; import android.app.Activity; import android.content.pm.PackageManager; import android.os.Build; import android.os.Bundle; import android.location.Location; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.widget.Toast;

Creating draggable map like uber application

风流意气都作罢 提交于 2019-12-11 12:23:27
问题 I have followed one link which has the code to make map which we can drag and get the current location. Here is the link. How to Implement draggable map like uber android, Update with change location I have followed all the code still I am unable to get the result. The map we can drag but not showing the location on text view. ChooseFromMapLayout <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http:/