ios-web-app

Prevent links in iframe to navigate/takeover cordova webview, especially in ios

六眼飞鱼酱① 提交于 2019-12-13 11:48:29
问题 I have Cordova application which displays external content with iframe (youtube embedded video in that case) When clicking links inside the iframe (like the youtube logo), The whole webview is navigated to the youtube website, not just the iframe. (without ability to go back, you need to kill the app), the behaviour i want to prevent. On android, the cordova plugin api exposes onOverrideUrlLoading method, which should be able to block unwanted navigations. (have't tested it myself yet) I

How do you go to the previous route in iron-router?

家住魔仙堡 提交于 2019-12-12 10:57:13
问题 I'm using an event handler to go to the previous URL/route: 'click #back': -> history.back() This works in Chrome desktop, Chrome devtools mobile device view, and in Safari on a physical device itself (iOS 8.1.2), but not in Chrome on the device. Behavior is: Load / Click link to /foo URL changes to /foo, and foo template renders Click #back URL changes to / briefly, then changes back to /foo. The page body does not change. (Correct behavior is the URL permanently changes to /, and the /

Prevent links in iframe to navigate/takeover cordova webview, especially in ios

╄→尐↘猪︶ㄣ 提交于 2019-12-03 15:55:08
I have Cordova application which displays external content with iframe (youtube embedded video in that case) When clicking links inside the iframe (like the youtube logo), The whole webview is navigated to the youtube website, not just the iframe. (without ability to go back, you need to kill the app), the behaviour i want to prevent. On android, the cordova plugin api exposes onOverrideUrlLoading method, which should be able to block unwanted navigations. (have't tested it myself yet) I haven't found similar method on ios cordova classes, nor in ios webview api. but i'm not really familiar