Remote page attachments are broken on iOS webviews, or at least in the Google native app and Discover.
All history navigations need to originate from a clicked anchor tag. We should replace our navigation based on the history API, and trigger a click on the anchor tag.
|
const navigationService = Services.navigationForDoc(this.getAmpDoc()); |
|
navigationService.navigateTo( |
|
this.win, |
|
this.element.getAttribute('href') |
|
); |
The swipe up interaction we get is not a trusted interaction on Safari (it is on Chrome), but because this is a _self navigation, it won't be blocked by the browser/webview.
This fix has been prototyped and tested already.
cc @ampproject/wg-stories
Remote page attachments are broken on iOS webviews, or at least in the Google native app and Discover.
All history navigations need to originate from a clicked anchor tag. We should replace our navigation based on the history API, and trigger a click on the anchor tag.
amphtml/extensions/amp-story/1.0/amp-story-page-attachment.js
Lines 294 to 298 in e03dba1
The swipe up interaction we get is not a trusted interaction on Safari (it is on Chrome), but because this is a
_selfnavigation, it won't be blocked by the browser/webview.This fix has been prototyped and tested already.
cc @ampproject/wg-stories