How to open Safari from a WebApp in iOS 7

前端 未结 11 2148
情深已故
情深已故 2020-12-02 09:50
11条回答
  •  一生所求
    2020-12-02 10:54

    UPDATE Just wanted to let any one following this know that iOS 7.0.3 seems to fix the issue. I've keep standalone webapps saved for testing and the update released today restored external link/app functionality. So I've updated my code to let customers know to update their phones instead of deleting and re saving the web app.


    I was going to just add a comment but apparently this is too long.

    Apple set the stage for a WebApp world when they allowed chromeless webapps to be saved to the homescreen of the device. This "bug" feels like a major step backwards. It doesn't seem very apple to leave such a gapping bug in a final release. At least not one that, once they become aware of it, they don't publicly state they are working on a fix for it like they did with the lockscreen bypasses. I can't help that this feels intentional though there doesn't seem to be a clear reason why.

    For developers dealing with this issue the only solution I could find was to

    1st) Set the meta tag apple-mobile-web-app-capable to "no" - this prevents future users from dealing with the problem

    2nd) Updated the code in our webapp to look for "standalone" and iOS version 7+. When conditions are meet I offered a popup that stated the issue and added a link to that page and asked the users for their forgivness and requested they copy the link and paste in in safari.

    I wrapped the link in edge to edge tag with line breaks above and bellow to help make the copy and pasting process of the url a bit easier.

提交回复
热议问题