iOS 4 Location Service Prompt Dialog Doesn't Show Up - iphone

I'm experiencing an issue with how iOS 4 manage Location Service. Previously, when the location service is disabled, any application that uses location service will prompt the user to turn it on. However, in iOS 4, it didn't prompt that dialog box and just stays quiet. Is there a way to call the default dialog box which ask the user to turn on the location service, or did they remove that and requires the developers to create their own dialog box?

If the user doesn't want any apps to know their location, you shouldn't nag them. The user can also disable location services for specific apps.

There is a way to detect this behavior with Javascript in the browser - the error returned has a different code and message - so I imagine that there's a way to do this with an actual app as well.
Not an Obj-C coder, though, so can't actually help out with details. :)

Related

How do I use Chrome's Developer Tools to catch the end destination for a click-event?

As a policy for security I want to stay logged-in by default to my social media networks, but I do not want external desktop links to open in my browser that is logged in. So my default browser-mode is --incognito. I have an issue with Chromium's Signal App crashing when my browser is set to default in incognito mode. This much I've figured out.
I want to have a bookmark that I can manually run in my logged in browser to run the Signal app.
The Chrome web store provides one such link. I can run signal by running Chromium outside of incognito mode and clicking in the webstore LAUCNH APP. I would like to use the Developer Tools to catch that even and know what the end-url is that triggers the Signal App.
How do I go about introspecting that?
I don't really understand the specifics of your use case, but going off of the title of your question, perhaps this will help:
Set an event listener breakpoint for Mouse > click.
Click on the element to trigger the listener(s).
Step through the code.

Turn on/off GPS programmatically without prompting the user in iphone

I'm planning to code an application for the times when someone's iphone is lost or stolen. So it needs to tell the location of the phone via GPS, but in case it's stolen, it wouldn't be a good idea to ask the thief to turn on the GPS. So I'd like to know if there is a possibility of turning on/off the GPS without prompting the user. Thanks.
I'm not sure if you have seen this or not: Apple's 'find my iPhone'
Either way, The app would have to be running, with GPS enabled, for the service to work correctly. Any half-wit thief would know to quit such an application
You can't bypass the prompt completely. But it won't show up forever, if the user allows the app to use location data. Once the user allows this access twice, the app won't prompt any more. For an app like the one you describe, the user would have to do this first, and only then could future access proceed without a prompt.
There's still the pointer icon at the top of the screen when location services is active. There's no way around that, though.

asking if user wants to use Location Services

How does the process of "asking if user wants to use Location Services" work?
I read here that a dialog at the installation appears, which asks the user if Location Services should be allowed or not. Does it mean that there is nothing to do for the developer, because the user can change this behavior in settings? So there is no "asking dialog" to implement and no storing in system settings? Does the app need a settings menu where this behavior can be changed?
What is if I want such a settings menu in my app?
The only thing the developer has to be aware of is to check in his code if it is allowed or not? See here.
Sounds reasonable isn't it ? Yes, that's it. No dialog to implement yourself, iOS manages that for you.
The user can change the settings in Settings/General/Location Service.

Possible to alert server to iphone settings change?

I'm working on giving our users context-specific PUSH notification settings, similar to what Facebook has in their settings menu.
As far as I can tell though, there's no way to actually notify our server of these changes until the user actually launches the app.
Is this correct? Is there any mechanism provided for immediately alerting our servers to a settings change?
That's correct: you can't detect changes made in the settings app until the next time your app launches.
The closest option to what you're describing would be to put the settings in your app somewhere and notify the server from there.

iPhone. Open application during call

Is there any way to do this?
In other words, is it possible during a call to allow the user to open a certain application? (for example, to provide information based on the person who is calling).
If not, will something like this be available on iOS 4?
You can open an application during a call (not automatically).
User can press the home button (the one that is under the screen) during a call and open some third party application.
Another issue is to retrieve the contact that the user is talking to now - I believe that this is impossible.
Regarding iOS 4 - I am pretty sure that this will be possible...
No.
AFAIK, there are two ways to launch an application:
The user taps the icon
The user responds to a push notification
You cannot directly control when your app is launched. Furthermore, once your app is running, there is no way to access information about the current call.