apple-mobile-web-app-capable web apps saved to the homescreen lose AJAX capability after screen lock on iOS-8.0.2
| Originator: | ohnobinki | ||
| Number: | rdar://18510145 | Date Originated: | 0214-09-30 |
| Status: | Duplicate of 18042389 (Open) | Resolved: | |
| Product: | iOS | Product Version: | 8.0.2 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: If the user has saved a apple-mobile-web-app-capable to the user’s homescreen in iOS-8.0.2 (unable to test 7 or 8.0.0), the web app will be unable to perform any AJAX requests using XMLHttpRequest after the user locks and unlocks the device while the app is running in fullscreen mode. Steps to Reproduce: 1. Write/find an apple-mobile-web-app-capable webapp that has AJAX capabilities. For example, http://cdn.ohnopub.net/cdn/binki/apple/ios/8/ios8.0.2-webapp-fullscreen-noajax/ 2. Open in Mobile Safari. 3. Choose the “Add to Home Screen” option from Mobile Safari’s chrome and follow the instructions to “Add” the page to the home screen. 4. Launch the webapp from the home screen and observe that it is capable of performing AJAX requests. (In the linked example, observe that generating a click event against “The Button” results in “sending…,1,2,3,4,200: OK”). 5. Lock the device using its hold button. Ensure that the webapp is still in the foreground immediately prior to locking the device. 6. Unlock the device. 7. Attempt to perform an operation requiring AJAX and observe that the iOS status bar displays network activity for a short moment but the webapp gets no response. (In the linked example, generate a click event against “The Button” and observe that the request never makes it beyond “sending…”). Expected Results: The webapp will remain able to get back data/feedback from AJAX requests after the user has unlocked the screen while the webapp is in the foreground. Actual Results: The webapp sends the request to the server causing entries to be added to apache2’s access_log file. However, the webapp never gets any data/feedback back. The webapp can only assume that the user agent (the iOS fullscreen webapp runner app thingy) has not even sent the request yet. Version: iOS-8.0.2 [12A405] Notes: Hmm, sorry, my JavaScript does not seem to be compatible with iOS6, but I am quite sure that this problem did not exist back then. I suspect it did not exist in iOS7 either but I cannot test that. Configuration: iPad 2 and iPod 5 on WiFi (MC769LL/A and MGG82LL/A) Attachments: Duplicate of 18042389 (Open) rdar://18042389
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Still present in 8.1
Same as http://www.openradar.me/18315454