Not a valid AMP page with OneSignal
-
Hello,
When I enable Push Notifications I am getting AMP errors.—
Not a valid AMP page
Invalid AMP pages will not have AMP-specific features in Google search resultsInvalid usage of AMP tags
Invalid URL protocol ‘http:’ for attribute ‘helper-iframe-url’ in tag ‘amp-web-push’.
<amp-web-pushInvalid URL protocol ‘http:’ for attribute ‘permission-dialog-url’ in tag ‘amp-web-push’.
<amp-web-push—
Side note: Originally, the site was not fully HTTPS, so though it now is, in OneSignal the site url is http:
If you are grabing the URL from there, maybe you can force it to https?I see things such as:
<amp-web-push id="amp-web-push" layout="nodisplay" helper-iframe-url="https://www.todamujeresbella.com/wp-content/plugins/accelerated-mobile-pages/includes/onesignal-integration/amp-helper-frame.html?appId=bee5524c-1dd2-4689-b25b-e7897bc99adf" permission-dialog-url="https://www.todamujeresbella.com/wp-content/plugins/accelerated-mobile-pages/includes/onesignal-integration/amp-permission-dialog.html?appId=bee5524c-1dd2-4689-b25b-e7897bc99adf" service-worker-url="https://www.todamujeresbella.com/wp-content/plugins/onesignal-free-web-push-notifications/sdk_files/OneSignalSDKWorker.js.php?appId=bee5524c-1dd2-4689-b25b-e7897bc99adf"> </amp-web-push>
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Not a valid AMP page with OneSignal’ is closed to new replies.