我使用 Cordova 4、Angular 1.4 和 Ionic 1.3 来制作适用于 Android 和 iOS 的平板电脑应用。
当用户同步数据时,应用打开另一个窗口(cordova-plugin-inappbrowser)并显示我们的 SSO 网页。当用户结束连接时,窗口关闭并再次发送同步。
当应用关闭但 iOS 不关闭时,Android 存储 session cookie。
用户每次在iOS上打开app,都需要打开window authentificator。
这是一种在 iOS 上存储更长 cookie 的方法吗?
谢谢
Best Answer-推荐答案 strong>
EVURLCache可以帮到你。
This is a NSURLCache subclass for handeling all web requests that use
NSURLRequest. (This includes UIWebView)
The EVURLCache is meant for handeling the following caching
strategies:
- The app has to be functional even if there is no internet connection.
- The app has to be functional right after the app has been downloaden
from the app store. (This means that the required content can be
included in the app.)
- You do want to be a able to download new/updated
content if it's available.
注意:
支持:iOS 8+ OSX 10.9+ WOS 2+ TVOS 9+
关于iOS UIWebView 和 Cookies 存储,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/38891446/
|