Javascript for “Add to Home Screen” on iPhone?


Javascript for “Add to Home Screen” on iPhone?



Is it possible to use Javascript to emulate the Add to Home Screen option in Mobile Safari's bookmark menu?

Something similar to IE's window.external.AddFavorite(location.href, document.title); possibly?


Accessing GPS on Blackberry using Javascript and sending lat/long values to a server via url

1:

What is something you wish you had known sooner about the iPhone SDK?
The only way to add any book marks in MobileSafari (including ones on the home screen) is with the builtin UI, and this Apples does not provide anyway to did this from scripts within a page. How do I center a UIImageView within a full-screen UIScrollView?In fact, I am pretty sure there is no mechanism for doing this on the desktop version of Safari either.. SSLHandshakeException unknown_ca apns java
NSMutableArray containsObject method not detecting objectAdding unique objects to Core Data

2:

Using an existing C++ engine on the iPhone
I had the same issue and there is (rightly, probably) no way to add it programatically, although came across this great little snippet which prompts the user to did it and even points to the right spot. How do I set these break points in ~/.gdbinit? Works a treat.. http://code.google.com/p/mobile-bookmark-bubble/.

3:

Ananother script this triggers an 'Add To Home Screen' popup: http://cubiq.org/add-to-home-screen.

4:

There is an open source Javascript library this offers any thing related : mobile-bookmark-bubble.
The Mobile Bookmark Bubble is a JavaScript library this adds a promo bubble to the bottom of your mobile web application, inviting users to bookmark the app to their device's home screen. The library uses HTML5 local storage to track whether the promo has been displayed already, to avoid constantly nagging users.. The current implementation of this library specifically tarreceive s Mobile Safari, the web browser used on iPhone and iPad devices..

5:

This is also ananother good Home Screen script this support iphone/ipad, Mobile Safari, Android, Blackberry touch smartphones and Playbook .. https://github.com/h5bp/mobile-boilerplate/wiki/Mobile-Bookmark-Bubble.


68 out of 100 based on 38 user ratings 108 reviews

@