0

What controls whether an iOS web app launched from a Web Clip opens links in mobile Safari? (As opposed to the special browser just for the web app.)

nmr
  • 16,625
  • 10
  • 53
  • 67

1 Answers1

0

Found the answer in the comments to iPhone Safari Web App opens links in new window

Thanks to Oskar Austegard

To state the obvious and make this explicit: iOS treats links in Web Apps as something that should be opened in Safari, and javascript location changes as an in-app action that is allowed to saty in the web-app. The code above works because it prevents the default link behavior, replacing it with a js nav call. – Oskar Austegard Sep 15 at 13:11

Community
  • 1
  • 1
nmr
  • 16,625
  • 10
  • 53
  • 67
  • Also stated in some official Safari documentation here: http://developer.apple.com/library/safari/#codinghowtos/mobile/userExperience/_index.html – nmr Dec 02 '11 at 19:08