Failed to get iOS web client files when updating manifest. 401 unauthorized

I have an HTML5 webapp that works great when serving through IIS without authentication.

Is uses the cache.manifest file.

As when running in safari, or as a full-screen application, "add to the desktop" after updating the manifest file on the server and updating the application.

When I enable authentication in all files except cache.manifest, I see the update only when launched in the Safari browser.

If I add it to the desktop, I cannot make the application update the cache.

If I scroll through the traffic on the server, I see that the manifest file is retrieved without problems, but all the files in the manifest file get error 401 Unautorized.

Any idea how I can fix this? Running it in the Safari browser works.

Any help greatly appreciated.

+6
source share
1 answer

Safari is much more knowledgeable about HTTP Basic Auth, but web.app (the home screen web application handler, which is basically a UIWebView wrapper) is not so fully functional and does not seem to support basic authentication.

It seems you might have to work around this with a server-side solution to add an authentication key to the file name (e.g. application.css? Longhexkey), to bypass basic auth or go with a more traditional login form (which may require significant changes in your application)

Same problem on Sencha forums: The answer to this question: forced re-authentication after offline use on iOS devices?

+3
source

All Articles