javascript - Ionic 3:清除 Windows 平台的 InAppBrowser 缓存
问题描述
我在我的混合应用程序(Windows 10)中使用了 Salesforce 身份验证。我已经集成了 InAppBrowser 插件以在 Web 视图中加载 url。
当有人从应用程序注销时我面临问题,因此缓存不清楚。
我也尝试过以下代码,但选项参数不适用于 Windows 平台。它仅适用于android和ios平台。
var options = "clearcache=yes;clearsessioncache=yes";
console.log(authUrl);
//Wait till the cordova platform is ready before triggering the inappbrowser plugin
this.platform.ready().then(() => {
this.inAppBrowserRef = new InAppBrowser().create(authUrl, '_blank', options);
});
有没有其他方法可以清除与 Windows 平台的 InAppBrowser 关联的所有缓存?
感谢任何帮助。
解决方案
它应该工作。一旦与其他 URL 进行交叉检查,网站 URL 或 Windows 应用程序可能会出现问题。
您说的是 Windows 平台,它适用于 Android 和 iOS 吗?谢谢你
推荐阅读
- bash - 在 bash 中,从标准属性文件中提取选择属性到单个分隔行?
- html - 其他图像右上角的图像?
- bash - 如何以安全的方式调用“EDITOR”环境变量来打开/编辑文件?
- php - WooCommerce 订单收到的图像不会改变其大小
- php - 如果不是isset,如何在php中调用模态
- java - 为什么我对相同文本的 python 和 java base64 编码有不同的结果?
- python - 返回不同数量和类型的值?
- javascript - 将Javascript函数应用于多个按钮?
- scikit-learn - 如何使用 MCMC 优化超参数而不是高斯过程回归中的对数边际似然
- c++ - C++中矩阵乘法的库之类的函数