Open 06romix opened 3 years ago
When using iPhone 5/se amp-list does not send cookies, and there is no possibility to show customer-related data.
You need a PHP server with valid SSL to make test
Create an amp page index.html with the following content
<!doctype html> <html ⚡ lang="en"> <head> <meta charset="utf-8"> <title>amp-list</title> <script async src="https://cdn.ampproject.org/v0.js"></script> <script async custom-element="amp-list" src="https://cdn.ampproject.org/v0/amp-list-0.1.js"></script> <script async custom-template="amp-mustache" src="https://cdn.ampproject.org/v0/amp-mustache-0.2.js"></script> <meta name="viewport" content="width=device-width"> <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript> </head> <body> <div> Cookie value: <amp-list id="myAmpList" layout="fixed-height" height="20" src="test.php"> <template type="amp-mustache"> <span>{{cookieValue}}</span> </template> </amp-list> </div> </body> </html>
Create amp-list endpoint test.php
<?php echo json_encode(['items' => [['cookieValue' => $_COOKIE['test'] ?? 'not found']]]);
Create setcookie.php file to set cookie and checking if cookie is set correctly
<?php echo '<pre>'; print_r($_COOKIE); setcookie('test', '123111111123');
Get your desktop
Go to setcookie.php to set cookie
Refresh the page to see whether the cookie is set
Go to index.html and wait when amp-list loaded
See 123111111123 value
Do 5-7 steps on iPhone 5/se or use https://app.lambdatest.com/console/realtime
See 'not found' instead of 123111111123 on index.html page
No response
iPhone 5/se
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
Description
When using iPhone 5/se amp-list does not send cookies, and there is no possibility to show customer-related data.
Reproduction Steps
You need a PHP server with valid SSL to make test
Create an amp page index.html with the following content
Create amp-list endpoint test.php
Create setcookie.php file to set cookie and checking if cookie is set correctly
Get your desktop
Go to setcookie.php to set cookie
Refresh the page to see whether the cookie is set
Go to index.html and wait when amp-list loaded
See 123111111123 value
Do 5-7 steps on iPhone 5/se or use https://app.lambdatest.com/console/realtime
See 'not found' instead of 123111111123 on index.html page
Relevant Logs
No response
Browser(s) Affected
No response
OS(s) Affected
No response
Device(s) Affected
iPhone 5/se
AMP Version Affected
No response