iPhone custom browser app programmatically create 'Bookmark' on Home Screen - iphone

We are trying to create a custom browser app for iPhone. In this app we would like to be able to allow the user to click on a link labeled "Add to Homescreen" just like Safari browser does and have our custom browser add the link/icon to the homescreen (just a web app link/url).
Is this possible and if so where do we look to figure out how to do it?
Thanks!

please check "App Store Review Guidelines.
it says
10.4 Apps that create alternate desktop/home screen environments or simulate multi-app widget experiences will be rejected,
thanks.

Related

How to open a website from iPad?

I'm developing an Air app for an iPhone, and I want to have a button that gives you the functionality of going to a web page, that means, minimizing the app and execute the link to that page, how can I do that?.
You call the navigateToURL method when the button is clicked / tapped. Refer details of the API at http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7cba.html

My web app not showing on facebook native app

My app is showing on facebook desktop, m.facebook.com, but not on the native app?
I meant not showing on bookmark or favorite. When I search for it within the native app I can find it.
According to the documentation it should also appear on the native Facebook app bookmark?
Can anyone please advise what did I do wrong? I have set the mobile web setting already.
Thanks
If your app has a native app, the it will show up in the Facebook app bookmark list. If you app is a desktop or canvas app, it shows up on desktop. If your app is a mobile site, then it shows up on m.facebook.com. You need to specify the type of app or apps you support/have/exist in the developer dashboard for the app.

Share to MyApp button in Photos

What does it take to add a menu option to the iPhone's Photos/Camera app similar to the "Share via Facebook" functionality, where a user can take a photo with Camera and push it to my app? And what provisions would I need to make in my ViewController to accomodate the pushed image data?
Thanks.
Simply put, you can't. Apple doesn't allow your app to add functionality to built-in iOS apps.
You will need to build into your app a camera feature that can access the users Photo Library and also add the sharing functionality that you are looking for.

How to launch iPhone settings app from my app?

How can I launch the iPhone settings app from my own app? For example, like the screen shot I got from twitter app below:
I turned off the network, and the twitter shows me a network error alert. But in the alert view, they implement a button "Settings". When I press the button, it brings the iPhone settings app up.
So I am curious on if there any methods can be called to do this?
Thanks in advance.
I don't believe so. This dialog is provided by Apple when data is not available for an app that has set Wifi as a requirement in its info plist.
Typically you would need to use custom URL schemes to access other Apple apps, but settings is not available and not part of this list.
Example:
http://wiki.akosma.com/IPhone_URL_Schemes
http://software-security.sans.org/blog/2010/11/08/insecure-handling-url-schemes-apples-ios/

Return to app from safari

In my application, I redirect the user to the safari browser when he/she taps on a button, which in turn closes the application and opens the safari browser. There is no problem in that. It works fine. The thing is when the user quits the safari browser, I want to redirect the user back to the application, not the home screen. Any idea please...
If you control the website that you are redirecting them to, then you can place a link on the site using custom URL which I describe in more details below. But if it's a site you don't control, you can have the user surf within your app using the UIWebView.
For an iOS app, you can create custom URL schemes that your app register with the system. Then on the web page you would create a link using that custom URL. That is how Apple launches the telephone.app or the mail.app from mobile safari.
For example: Let say your app is call BigBadApp. You custom URL would be: bigbadapp:// Now, you could create a link to your app would be: Launch BigBadApp You can pass any kind of information back to your app using the custom URL and your app will handle that information in the app delegate. For iOS 4.2 and later: application:openURL:sourceApplication:annotation:. The name of old delegate on earlier version of iOS is application:handleOpenURL:
For more information see check Apple Implementing Custom URL Schemes.
Also iOS developer:tips has a tutorial on Launching Your Own Application via a Custom URL Scheme.
You can't. When you redirect someone out of your application the only way to get back is using the task switcher or opening your application from the home screen again.
If you want to keep the user in your application you could open the web pages in a webview within your application
use UIwebViewController . that represent web link within app . so that your app wont be in back ground and add back button in navigation bar on click back button navigate to back screen . i guess it would be better
i would launch an in app browser...
this is a good uiviewcontroller subclass that has most of the browser functions already implemented. its very easy to use.
https://github.com/samvermette/SVWebViewController