What is the class or API used to popup the alert to the user for their current location access permission to the app?
When you are using core-location the app shows automatically the alert for permission. You can't disable/enable that by yourself.
Not quite sure what you're asking ... is this related to a web application? iphone? android? java? fortran? Anyway, i'll go on a limb here and think you're referring to the HTML5 GeoLocation API:
http://html5demos.com/geo
This other question may be of value to you if it's iOS and you don't want to do it once with HTML5 ...
What's the easiest way to get the current location of an iPhone?
Related
I am building some software that requires me to display the icons of different apps, and possible save them on a database so I can look it up on demand?
I know you can get the url scheme but is that all you can do with it ? Or is there a way to get the app icons ?
For instance is there a way to get the icon of angry birds via an API call to the IOS system ?
In a non-jailbroken iPhone, you cannot get it from the OS.
You need to query the iTunes service from Apple to get this info ex:
http://itunes.apple.com/lookup?id=284882215
See this SO post for more detail
Get other application icon image in my Application
I am currently making an app that recommends other apps to download on the apple app store. I assumed that the only way for users to download these linked apps was to call the iTunes URL of the particular app -> the apple app store would then open pushing the original calling app into the background -> then the user would press the download button here as per normal.
Then I was playing with the app "App Hero" and they do something I thought wasn't possible. You can actually download another app to your device without ever leaving the "App Hero" application. I thought this was impossible due to sandboxing. They have a modal segue to what appears to be an embedded app store where you can commence installation of another app. This "embedded" app store doesn't have the usual UITabBar running along the bottom but everything else is basically the same.
Does anyone have any idea how they would have achieved this? It doesn't appear to be a UIWebView, perhaps I am wrong. And is this against any of the apple regulations?
*This is no way an advertisement for "App Hero". I am genuinely impressed/confused how they are able to do this and would love this functionality in my own app if it is allowed.
The class you are looking for is called SKStoreProductViewController. Docs here.
I'm building a spotify app that does some work in the background and should then alert the user if it finds a match. I can't find a way to notify the user on the main plane when I have found something of interest.
I'd like to have something like a counter on my app name or some form of notification in order to alert the user that something has changed in my app and that they should come to the app.
Does anyone know if this is possible ?
thanks,
Sean
You would need to notify them via Facebook, Spotify doesn't allow you to identify the individual users on the Spotify platform through the api.
Also there is the issue of that your App unloads after 60seconds of the user not being on the App Pane (off in a playlist etc).
So whilst a counter icon that you suggest would be wonderful.
The App Unload-er needs to go away first.
I want to integrate facebook fan page in my game with out leaving the game. And I also want to detect If any one like that app, I mean I want to detect "like" button pressed or not.I view this tutorial http://www.raywenderlich.com/1626/how-to-post-to-a-users-wall-upload-photos-and-add-a-like-button-from-your-iphone-app But there is only instruction to add the like button,but o detection if any one tapped the button or not.
Any one help me please.Sample code or tutorial may help a lot.
Thanks in advance.
Tamanna
The Facebook API on iOS is meant to redirect the user on the Facebook app (or website when the app is missing) in order to grant access for the like itself. This needs to be done at least once.
In order to gather information about who is liking what you can set up whatever log or backend functionality to the Facebook app that you have to create to activate the like functionality on your iOS app.
On the iPhone, when your phone is locked and screen off, if a SMS message comes in, the screen turns on and an alert shows up.
Currently I am using UIAlertView to create the alert dialog (with 2 buttons).
If the phone is off/locked, nothing shows up until I turn it back on and unlock it.
Is there any way to simulate the 'SMS preview' behavior, possibly with another class, and hopefully still allow the user to interact with the buttons there?
CFUserNotificationCreate is your friend.
Not in the official iPhone SDK? Too bad, I remember that a year ago on the big presentation of the yet-to-come SDK, an Apple evangelist/chief saying that the SDK would include exactly the same API as used internally by Apple... Pfff...
/John
What you want to do is not currently supported by the SDK. You should file a request with Apple.