After searching Stackoverflow and Google, I have not found a working solution.
I need a web app to remain in standalone mode when changing pages (clicking links). Currently, when any links are clicked while in standalone mode, they are launched in a new window in Safari, and exits standalone mode.
How can I prevent links from opening a new window so that it remains in standalone mode.
This piece of code is tested and does not work:
$('a').click(function(e){
e.preventDefault();
window.location = $(this).attr('href');
});
It seems as though this is being circumvented by Safari while in standalone mode, preventing this from working. Is there a new work-around?
This app is being presented tomorrow, so PhoneGap is not an option; are there any others?