pass location parameters to registered location services application - iphone

I need to add the following feature to my iphone application.
When user taps a button I need to show a list of applications that work with maps/navigation/location (that can show him how to get from his current location to the destination point). When user chooses any application from this list my applicationn sends parameters (destination point) to it and opens it.
for example. user presses a button an then he sees the list of registered location services applications:
- google maps application
- navigate application
- iGo application
- some other application's
then user chooses "google maps application", for example. Then my application have to open google maps application with the parameters (destination point) passed to it.
So user can see the path (how to get) from his current location to the destination point inside google maps application
It could be done for android, what about iphone?

Unfortunately, It could not be done normally on ios

Related

Allowe location services again programmatically

I have disabled location services on Safari (iphone) when I load my web clicking on "Not allow". How can I allow it again for the same web page (programmatically)
Best regards
You can not change user preferences programmatically. You can simply check if location services are on and your application has access to services if not prompt user to allow location services to use this feature in your app.
You can't, you will have to go in to the settings app and enable it there.
(if you want your app on Appstore) Programmatically you can not call that dialog which asks you for location services permission.
manually go to Settings -> General, scroll to the bottom and go to Reset-> Reset Location & Privacy.

Google maps registered URL scheme in iPhone

Is there Google maps application launch link which is registered as URL scheme in iPhone?
I know i can launch Google maps using http://maps.google.com ...
But this needs internet connection. I'm looking for a launch link which does not require internet connection like Waze (waze://?ll ...)
The Google Maps app can be launched from the maps URL already:
http://developer.apple.com/library/ios/#featuredarticles/iPhoneURLScheme_Reference/Articles/MapLinks.html
This way, if Google Maps is not installed then the user will be redirected to a web site and thereby provide a graceful degradation of service.
Note that in iOS6 the new maps application means that some of the above will be different - check the iOS6 docs if you have a developer account, or wait until its public information.
The problem of whether or not you need an internet connection is different however. If the map section is cached, then Google Maps won't necessarily need an internet connection - but that's in no way guaranteed, and nothing you can do about launching the app is going to change that.
You could launch Waze (if it's installed) - check out their API documentation for details how to do this:
http://world.waze.com/dev/documentation/

iOS, CLLocationManager: Displaying the "reenable Location Services" Popup

if location services are turned off (after the user once did allow the service) and you then start location updates, a system popup should appear. (the documentation says so in the description of [CLLocationmanager locationServicesEnabled])
But if I setup a test project, which just initialises a CLLocationManager and then calls startLocationUpdates, the popup does NOT appear on every app start. But it should if I understand the documentation right?
I am not talking about the first popup, which asks the user to allow or deny location use for that app. I am talking about the popup, which asks the user to reenable the location services in the settings. That popup has a direct button to the settings application. You can see it, if you disable location services and than open up the maps app. Everytime you press the locate-me button now, the popup appears. Screenshot:
I want it to show up reliably on every app start in case the services are disabled. (other apps do it the same way, e.g. aroundme)
Thanks, Markus
The Popup will only appear once (in some cases twice) for the lifetime of an app!
That is the result of my tests. If anyone has additional information, feel free to write / contact me!
Thanks.

Location services alertview

When we use libraries of location services in our app it automatically show the alert box when we launch the app with don't allow and Ok buttons.
Is it possible to disable the don't allow button? And is there any variable set when we press don't allow or OK button?
Do you mean when the alert asks the user if they want to allow your application to use location services ? If so then no, you cannot override this. This is so that the user is not only aware that their location is benign tracked but also that this data is going to be used by the application. Would you want an application tracking you and potentially uploaded your location without your knowledge ?
As for the variables, pressing yes will tell iOS that it is allowed to track you data, saying no will do the opposite so any maps or locations based services will not be able to retrieve user location.

iphone : embed a fully integrated customized (Google) map in a native app

Is it possible to send GPS coordinates, a name and hyperlink to a kind of Google map API so that it shows a map, some places with a name and whenever a user clicks on a place would go to a URL?
If so, is it possible to attach this map as a view so that a user can make use of the navigator bar of the native application at any time?
If it is possible, how could it be done?
Google:
http://www.invasivecode.com/2009/07/adding-maps-to-your-iphone-app-mapkit/
http://blog.objectgraph.com/index.php/2009/04/02/iphone-sdk-30-playing-with-map-kit/