I need to get current location in my application and I'm using flutter location plugin.
I just got this libraries for using location in flutter :
_location, geolocator, geolocation, flutter_geolocation_
all this libraries are using google fusedLocationProviderClient for getting current and last location updates.
the fused location provider client is not really good in my case because it will work if you have opened the google Maps once before.
check this for getting more details:
Platform Exception With Error code 'ERROR' in getLocation() method
My question is, Is there some flutter plugin or library which is using android location provider instead of google fused location provider ?
Sorry for my poor English language.
Related
Already done:
Step 1:
Create or edit NMAVenue3dVenue with HERE Venue Map Admin Tool
Step 2:
Get App ID, App Code and License ID with the same account that was used to create the custom venue.
Step 3:
Integrate data from step 2 into ios project
Step 4:
Make sure here maps SDK is loading without any errors
Step 5:
Restart Xcode and clean cache
Result:
NMAVenue3dService listener function venueServiceDidInitialize(_ venueService: NMAVenue3dService!, withResult result: NMAVenue3dServiceInitializationStatus) (with result online success) and venueService(_ venueService: NMAVenue3dService!, didGet venue: NMAVenue3dVenue!, with venueInfo: NMAVenue3dVenueInfo!, with status: NMAVenue3dServiceVenueLoadStatus) getting calls but always with an unexpected venue. (The coordinates for this venue are okay)
I was also trying to obtain custom created NMAVenue3dVenue by manually asking NMAVenue3dService for it to find with specific coordinates and radius or unique id. It seems like NMAVenue3DService is not able to find the custom venue.
Please help me to get connection between custom created private or edited public venue and here maps sdk ios.
Thank you
Assuming the custom map being created is a image-based indoor maps , then it would not be available via the Mobile SDK.
Reference Documentation: https://indoor.here.com/#/tools/help-text-2
Custom image-based indoor maps are only meant for testing deployment
and indoor positioning in HERE Indoor Radio Mapper. The image-based
indoor map will not be exposed to applications via HERE Mobile SDK.
I have a very simple application that uses realtime location data to obtain relevant information, developed in C# as a UWP 10.0 application.
My interaction with the geolocation API is very simple: I only checked Location in the "Package Manifest" under "Capabilities" and I only use the following API call:
var locator = new Windows.Devices.Geolocation.Geolocator();
var location = await locator.GetGeopositionAsync();
When this call is first made, Windows 10 throws up an "Allow this application to use your precise location [yes | no]" dialog. Selecting "yes" seems to "save" this choice for around 5 minutes or so; subsequent attempts at obtaining the user's position within the next five minutes go through (I believe they return the cached value, as it never seems to change), but more than 5 minutes later, the permission dialog is always shown once more (even though the user has already authorized it).
From my reading of the geolocation API documentation on MSDN, I can find nothing to suggest that this is the intended behavior. Under privacy settings in the metro control panel, this application is under the list of apps allowed to use the precise location. What's more, other apps in that list with precise location enabled have never prompted me to allow them access to the precise location past the first time.
What am I doing wrong here and how can I prevent this dialog from constantly popping up?
EDIT
With await Geolocator.RequestAccessAsync(), the permissions are cached so long as the exe is not modified/re-compiled.
I was able to replicate your problem. But according to official documentation, it clearly mentions, that you need to call RequestAccessAsync() before any calls.
So when I made change from your lines of codes, to below, permission Request window showed up only once and subsequent calls were made directly.
GeolocationAccessStatus accessStatus = await Geolocator.RequestAccessAsync();
if (accessStatus == GeolocationAccessStatus.Allowed)
{
Geolocator locator = new Geolocator();
Geoposition location = await locator.GetGeopositionAsync();
locText.Text = location.Coordinate.Point.Position.Latitude + Environment.NewLine + location.Coordinate.Point.Position.Longitude;
}
Hi we are developing an IBM MobileFirst Platform-based Hybrid Application. In our application we are accessing user gallery (to upload photos). for this in iPhone we need to ask the user permission explicitly, to ask user permission in iPhone we need to display dialog box. Here my question is the dialog box which we are going to show to the user is custom dialog box or is there any native feature built-in in MobileFirst, or with the help of any cordova plugin?
You can use requestCameraRollAuthorization() in cordova-diagnostic-plugin to request native iOS permission to access the user photos:
cordova.plugins.diagnostic.requestCameraRollAuthorization(function(granted){
console.log("Authorization request for camera roll was " + (granted ? "granted" : "denied"));
}, function(error){
console.error(error);
});
MobileFirst does not handle any permissions for you - it is not that kind of a framework. This really relates to the Cordova layer in your app, which access the photo library.
You need to display a dialog box asking the user whether or not does s/he allow for the access to access the photo library. You can use WL.SimpleDialog for this purpose, for example.
Read more here:
http://docs.phonegap.com/en/3.3.0/guide_appdev_privacy_index.md.html#Privacy%20Guide
Cordova Camera Plugin in IOS 9
perhaps to check if there is access given, create also a Cordova plug-in that will check for it using native code: Determine if the access to photo library is set or not - PHPhotoLibrary (iOS 8)
I am developing an iOS app which integrates google maps iOS sdk .
In my GMSMapView I have dropped a GMSMarker, I want to set the title of the marker with location name . I have tried GMSAddress, GMSGeocoder and GMSReverseGeocodeResult but I could not get the exact location name. How can get the complete address of the current location.
This post should have what you're after. Basically upgrade to v1.7 and use GMSAddress
The linked post includes a code sample you can use as well.
I have a google map that I created with KML:
Here is a link to the map:
http://goo.gl/maps/dkfjU
Here is the complete KML file:
https://dl.dropbox.com/u/94943007/02bb39645a3c9d95afeed5cb9bd5d07c040d8ca8a4ee56b9fb367d38.kml
When browsing this map with my IPAD using safari, for some reason when I tap anywhere on the map, it creates a point there on the map.
How do I disable point creation on the map so that IPAD users are not able to do this?
I checked the link as well and Marcelo seems to be correct. To have a maps with the ability to turn on and off layers you will need to build your own site and perhaps use Javascript and the Google-maps API to build it. Maybe start here: https://developers.google.com/maps/documentation/javascript/tutorial
You cannot disable adding a place mark if you are browsing the map in safari
You can control it if you use map kit iOS API of the iOS SDK.
For importing KML-Data into that SDK, you can use Sample Code from
Apple:
http://developer.apple.com/library/ios/#samplecode/KMLViewer/Introduction/Intro.html
But there is no built-in KML Import in iOS SDK. You can use other
frameworks as mapbox/Simple-KML here
https://github.com/mapbox/Simple-KML
If you want to do this in safari, then you're lost, unless you can manipulate that using JavaScript!!!